b1eaa3487165ebaedb489ced63a38eb45f650b5f,deeppavlov/models/embedders/fasttext_embedder.py,FasttextEmbedder,load,#FasttextEmbedder#,78
Before Change
.format(self.load_path))
sys.exit(1)
return model
@overrides
def __call__(self, batch: List[List[str]], mean: bool = False, *args, **kwargs) -> List[Union[list, np.ndarray]]:
After Change
Load fastText binary model from self.load_path
log.info(f"[loading fastText embeddings from `{self.load_path}`]")
self.model = fastText.load_model(str(self.load_path))
self.dim = self.model.get_dimension()
@overrides
def __iter__(self) -> Iterator[str]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: b1eaa3487165ebaedb489ced63a38eb45f650b5f
Time: 2018-10-17
Author: yoptar@gmail.com
File Name: deeppavlov/models/embedders/fasttext_embedder.py
Class Name: FasttextEmbedder
Method Name: load
Project Name: KhronosGroup/NNEF-Tools
Commit Name: edb9f18233560df5f5de33364d3df1225f85e713
Time: 2021-01-13
Author: viktor.gyenes@aimotive.com
File Name: nnef_tools/io/onnx/reader.py
Class Name: Reader
Method Name: __call__
Project Name: mittagessen/kraken
Commit Name: 9f200d963b9646fb50326f7cf6788021ddfe955d
Time: 2018-04-08
Author: mittagessen@l.unchti.me
File Name: kraken/lib/models.py
Class Name:
Method Name: load_any