c31afbb3c7523e111bb13f16afb2cb98d3ffe424,snips_nlu/resources.py,,_load_gazetteers,#Any#Any#,159

Before Change



def _load_gazetteers(language_resources_path, language):
    gazetteers_path = os.path.join(language_resources_path, "gazetteers")
    if not os.path.isdir(gazetteers_path):
        return dict()

    gazetteers = dict()
    for filename in os.listdir(gazetteers_path):
        gazetteer_name = os.path.splitext(filename)[0]
        gazetteer_path = os.path.join(gazetteers_path, filename)
        with io.open(gazetteer_path, encoding="utf8") as f:
            gazetteers[gazetteer_name] = set()
            for line in f:
                normalized = normalize(line.strip())

After Change




def _load_gazetteers(gazetteers_path, language):
    if not gazetteers_path.is_dir():
        return dict()

    gazetteers = dict()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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_gazetteers


Project Name: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/vocabs/static_dictionary.py
Class Name: StaticDictionary
Method Name: __init__


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_word_clusters


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_gazetteers