c31afbb3c7523e111bb13f16afb2cb98d3ffe424,snips_nlu/resources.py,,_load_verbs_lexemes,#Any#,180
Before Change
def _load_verbs_lexemes(stemming_path):
lexems_paths = glob.glob(
os.path.join(stemming_path, "top_*_verbs_lexemes.txt"))
if not lexems_paths:
return None
verb_lexemes = dict()
with io.open(lexems_paths[0], encoding="utf8") as f:
for line in f:
elements = line.strip().split("")
After Change
def _load_verbs_lexemes(stemming_path):
try:
lexems_path = next(stemming_path.glob("top_*_verbs_lexemes.txt"))
except StopIteration:
return None
verb_lexemes = dict()
with lexems_path.open(encoding="utf8") as f:
for line in f:
elements = line.strip().split("")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: snipsco/snips-nlu
Commit Name: c31afbb3c7523e111bb13f16afb2cb98d3ffe424
Time: 2018-06-15
Author: adrien.ball@snips.net
File Name: snips_nlu/resources.py
Class Name:
Method Name: _load_verbs_lexemes
Project Name: snipsco/snips-nlu
Commit Name: c31afbb3c7523e111bb13f16afb2cb98d3ffe424
Time: 2018-06-15
Author: adrien.ball@snips.net
File Name: snips_nlu/resources.py
Class Name:
Method Name: _load_words_inflections
Project Name: pytorch/tutorials
Commit Name: 00e131977b4e2cbe134f8832f3fbac7940644586
Time: 2018-08-29
Author: minkawhich@fb.com
File Name: beginner_source/hybrid_frontend/introduction_to_hybrid_frontend_tutorial.py
Class Name:
Method Name: