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

Before Change


                   evaluation.get_tokens_in_evaluation_datasets(args)))

        if args.analogy_datasets:
            token_set.update(model.token_to_idx.keys())

        // OOV words will be imputed and added to the
        // token_embedding.idx_to_token etc.
        with utils.print_time("compute vectors from subwords "

After Change



        if args.analogy_datasets:
            // 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:
            idx_to_token = [
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: dmlc/gluon-cv
Commit Name: 3410d585a7c8b8e481911246efadfe5203853eb3
Time: 2019-03-12
Author: hetong007@gmail.com
File Name: scripts/detection/yolo/train_yolo3.py
Class Name:
Method Name: train


Project Name: uber/ludwig
Commit Name: 690e6c8f9a42cf5b42dc010dfb073e54175da221
Time: 2020-05-07
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/combiners.py
Class Name: ConcatCombiner
Method Name: call