5cb31b24772202d34175b7c7f42c6b1792dd6dd4,snips_nlu/preprocessing.py,,language_stems,#Any#,11
Before Change
for path in stems_paths:
_, filename = os.path.split(path)
lang = os.path.splitext(filename)[0].split("_")[-1]
with io.open(path, encoding="utf8") as f:
_LANGUAGE_STEMS[lang] = ujson.load(f)
return _LANGUAGE_STEMS[language.iso_code]
def stem(string, language, *default):
After Change
def language_stems(language):
global _LANGUAGE_STEMS
if language.iso_code not in _LANGUAGE_STEMS:
_LANGUAGE_STEMS[language.iso_code] = verbs_stems(language)
return _LANGUAGE_STEMS[language.iso_code]
def stem(string, language, *default):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: snipsco/snips-nlu
Commit Name: 5cb31b24772202d34175b7c7f42c6b1792dd6dd4
Time: 2017-03-31
Author: adrien.ball@snips.net
File Name: snips_nlu/preprocessing.py
Class Name:
Method Name: language_stems
Project Name: pyinstaller/pyinstaller
Commit Name: e1966665e080ec8899755f9b9a3bf1ca6b209ed7
Time: 2015-09-18
Author: mzibr.public@gmail.com
File Name: PyInstaller/__init__.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: 563207ae6bd9a8565243b04dcd92af9c33bac524
Time: 2020-02-12
Author: peastman@stanford.edu
File Name: deepchem/models/keras_model.py
Class Name: KerasModel
Method Name: fit_generator