3146d1478501f47934e3a1136f731ba9e948420c,snips_nlu/resources.py,,_load_gazetteers,#Any#Any#,185

Before Change


            gazetteers[gazetteer_name] = set()
            for line in f:
                normalized = normalize(line.strip())
                if normalized:
                    token_values = (t.value
                                    for t in tokenize(normalized, language))
                    normalized = get_default_sep(language).join(token_values)
                    gazetteers[gazetteer_name].add(normalized)
    return gazetteers


def _load_verbs_lexemes(stemming_path):

After Change



    gazetteers = dict()
    for gazetteer_name in gazetteer_names:
        gazetteer_path = (gazetteers_dir / gazetteer_name).with_suffix(".txt")
        with gazetteer_path.open(encoding="utf8") as f:
            gazetteers[gazetteer_name] = set(v.strip() for v in f)
    return gazetteers
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: 3146d1478501f47934e3a1136f731ba9e948420c
Time: 2018-07-09
Author: adrien.ball@snips.ai
File Name: snips_nlu/resources.py
Class Name:
Method Name: _load_gazetteers


Project Name: quiltdata/quilt
Commit Name: 511dd8aa75f9148415c8f9efc91257c62e503e2e
Time: 2019-10-09
Author: armandmcqueen@users.noreply.github.com
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: set


Project Name: deepmipt/DeepPavlov
Commit Name: 8261994bf8f77251f0b22fb13fa490ffa0bd184b
Time: 2018-02-01
Author: yoptar@gmail.com
File Name: deeppavlov/core/data/utils.py
Class Name:
Method Name: ungzip