5cb31b24772202d34175b7c7f42c6b1792dd6dd4,snips_nlu/preprocessing.py,,language_stems,#Any#,11

Before Change


        stems_paths = glob.glob(os.path.join(RESOURCES_PATH, "stems_*.json"))
        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)

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]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: broadinstitute/gtex-pipeline
Commit Name: 1868550f1b5db4294f65ad06cc657f76f8b0f96c
Time: 2017-05-15
Author: francois@broadinstitute.org
File Name: rnaseq/src/combine_GCTs.py
Class Name:
Method Name:


Project Name: EducationalTestingService/skll
Commit Name: 140f9765f4c4f5165fd546bea30b2c473b9abb10
Time: 2014-11-07
Author: dblanchard@ets.org
File Name: skll/utilities/join_features.py
Class Name:
Method Name: main


Project Name: snipsco/snips-nlu
Commit Name: a05ea9b6422bf13fdff4eed2e1373eb99c2db30d
Time: 2018-05-14
Author: adrien.ball@snips.net
File Name: snips_nlu_dataset/assistant_dataset.py
Class Name: AssistantDataset
Method Name: from_files