03b0e7061cf477fbeccb9c128ee76603df582d86,scripts/word_embeddings/evaluate_pretrained.py,,load_embedding_from_path,#Any#,127

Before Change


                    args.embedding_path)

        // Add OOV words if the token_embedding can impute them
        token_set = set()
        token_set.update(
            filter(lambda x: x in model,
                   evaluation.get_tokens_in_evaluation_datasets(args)))

After Change


            // Pre-compute all words in vocabulary in case of analogy evaluation
            idx_to_token = [
                model.token_to_idx[idx]
                for idx in range(len(model.token_to_idx))
            ]
            if args.max_vocab_size:
                idx_to_token = idx_to_token[:args.max_vocab_size]
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 03b0e7061cf477fbeccb9c128ee76603df582d86
Time: 2018-09-04
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: load_embedding_from_path


Project Name: wandb/client
Commit Name: 930700a3a7e8c7e4ee8dfa26bae80f1518299040
Time: 2021-03-16
Author: kdgoyette@gmail.com
File Name: wandb/plot/confusion_matrix.py
Class Name:
Method Name: confusion_matrix


Project Name: biotite-dev/biotite
Commit Name: 1675e2873db77528ef1dee6fc49aaccfca9a369b
Time: 2020-11-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/dotbracket.py
Class Name:
Method Name: dot_bracket