61980b57db5349ec0adc4a7b4797ee4742c21b73,deeppavlov/models/embedders/fasttext_embedder.py,FasttextEmbedder,load,#FasttextEmbedder#,44
Before Change
from gensim.models.wrappers.fasttext import FastText as Fasttext
model = Fasttext.load_fasttext_format(model_file)
else:
log.error("No pretrained fasttext model provided or provided "load_path" is incorrect.")
sys.exit(1)
return model
After Change
from gensim.models.wrappers.fasttext import FastText as Fasttext
model = Fasttext.load_fasttext_format(model_file)
else:
log.error("No pretrained fasttext model provided or provided load_path "{}" is incorrect."
.format(self.load_path))
sys.exit(1)
return model
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 61980b57db5349ec0adc4a7b4797ee4742c21b73
Time: 2018-02-15
Author: yoptar@gmail.com
File Name: deeppavlov/models/embedders/fasttext_embedder.py
Class Name: FasttextEmbedder
Method Name: load
Project Name: deepmipt/DeepPavlov
Commit Name: 2e530e78c78c3f9f899143c437f55618d3038951
Time: 2018-02-18
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: load
Project Name: dmlc/gluon-nlp
Commit Name: aeb516494daa207720b428072ab49eeea7bfff75
Time: 2019-06-13
Author: xshiab@ust.hk
File Name: scripts/text_generation/sequence_sampling.py
Class Name:
Method Name:
Project Name: tryolabs/luminoth
Commit Name: 9179ffd82e0ebd20b953d56f8e2306ae5ccc51b0
Time: 2017-10-05
Author: javirey@gmail.com
File Name: luminoth/tools/cloud/gcloud.py
Class Name:
Method Name: train