def save(self, filename):
        sorted_words = sorted(self, key=self.get)
        text = '\n'.join(sorted_words)
        with open(filename, 'wb') as f:
            f.write(text.encode('utf-8'))
Saves the word dictionary to the given file as a list of word types.
dataset/ETHPy150Open erickrf/nlpnet/nlpnet/word_dictionary.py/WordDictionary.save