dfa0c1f47a6920ebe0efde372f5aee07284f2f68,deeppavlov/vocabs/static_dictionary.py,StaticDictionary,__init__,#StaticDictionary#Any#,28

Before Change


        if self.dict_name is None:
            self.dict_name = args[0] if args else kwargs.get("dictionary_name", "dictionary")

        data_dir = os.path.join(data_dir, self.dict_name)

        alphabet_path = os.path.join(data_dir, "alphabet.pkl")
        words_path = os.path.join(data_dir, "words.pkl")
        words_trie_path = os.path.join(data_dir, "words_trie.pkl")

        if not is_done(data_dir):
            print("Trying to build a dictionary in {}".format(data_dir))

After Change


    def __init__(self, data_dir=None, *args, **kwargs):
        if data_dir is None:
            data_dir = paths.USR_PATH
        data_dir = Path(data_dir)
        if self.dict_name is None:
            self.dict_name = args[0] if args else kwargs.get("dictionary_name", "dictionary")

        data_dir = data_dir / self.dict_name

        alphabet_path = data_dir / "alphabet.pkl"
        words_path = data_dir / "words.pkl"
        words_trie_path = data_dir / "words_trie.pkl"

        if not is_done(data_dir):
            print("Trying to build a dictionary in {}".format(data_dir))
            if data_dir.is_dir():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


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: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/dataset_readers/typos_kartaslov.py
Class Name: TyposKartaslov
Method Name: build


Project Name: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/data/utils.py
Class Name:
Method Name: download_untar