gensim.corpora.Dictionary.save_as_text¶
-
Dictionary.
save_as_text
(fname, sort_by_word=True)[source]¶ Save this Dictionary to a text file, in format: id[TAB]word_utf8[TAB]document frequency[NEWLINE]. Sorted by word, or by decreasing word frequency.
Note: text format should be use for corpus inspection. Use save/load to store in binary format (pickle) for improved performance.