@classmethod
    def load(cls, filename):
        words = []
        with open(filename, 'rb') as f:
            for word in f:
                word = unicode(word, 'utf-8').strip()
                if word:
                    words.append(word)
        
        return cls.init_from_wordlist(words)
Loads a WordDictionary object from a vocabulary file.
dataset/ETHPy150Open erickrf/nlpnet/nlpnet/word_dictionary.py/WordDictionary.load