251a43f5bfa33fcbdf47d229cd969eb919e0f8ca,underthesea/corpus/readers/dictionary_loader.py,DictionaryLoader,words,#DictionaryLoader#,20

Before Change


             with io.open(self.data_file, "r", encoding="utf-8") as f:
                words = f.read().splitlines()
                unicode_transformer = UnicodeTransformer()
                words = [unicode_transformer.transform(word) for word in words]
                self.words_data = words
        return self.words_data

After Change


    @property
    def words(self):
        if not self.words_data:
            content = read(self.data_file).strip()
            words = content.split("\n")
            self.words_data = words
        return self.words_data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 251a43f5bfa33fcbdf47d229cd969eb919e0f8ca
Time: 2017-07-07
Author: brother.rain.1024@gmail.com
File Name: underthesea/corpus/readers/dictionary_loader.py
Class Name: DictionaryLoader
Method Name: words


Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/chunking/test_chunking.py
Class Name:
Method Name: load_input


Project Name: undertheseanlp/underthesea
Commit Name: 80ee39154b951c2c50ae2067f560aad81510a13f
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: underthesea/corpus/ws.py
Class Name: WSCorpus
Method Name: load