1e50a6606c5215e0dc28d016bb5f57bd668f47af,src/gluonnlp/vocab/bert.py,BERTVocab,from_json,#Any#Any#,177
Before Change
bert_vocab._reserved_tokens = vocab_dict.get("reserved_tokens")
bert_vocab._padding_token = vocab_dict.get("padding_token")
bert_vocab._bos_token = vocab_dict.get("bos_token")
bert_vocab._eos_token = vocab_dict.get("eos_token")
bert_vocab._mask_token = vocab_dict.get("mask_token")
bert_vocab._sep_token = vocab_dict.get("sep_token")
bert_vocab._cls_token = vocab_dict.get("cls_token")
After Change
token_to_idx = vocab_dict.get("token_to_idx")
unknown_token = vocab_dict.get("unknown_token")
reserved_tokens = vocab_dict.get("reserved_tokens")
identifiers_to_tokens = vocab_dict.get("identifiers_to_tokens", dict())
special_tokens = {unknown_token}
// Backward compatibility for explicit serialization of padding_token,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-nlp
Commit Name: 1e50a6606c5215e0dc28d016bb5f57bd668f47af
Time: 2019-06-06
Author: lausen@amazon.com
File Name: src/gluonnlp/vocab/bert.py
Class Name: BERTVocab
Method Name: from_json
Project Name: ray-project/ray
Commit Name: 7b27ce2b236e29d82e33c5e07645f845d433973c
Time: 2020-03-27
Author: maximsmol@gmail.com
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: validate
Project Name: ray-project/ray
Commit Name: 7c0200c93b88898507dbafcb2d92314d0dbcd451
Time: 2020-04-28
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: __init__