gensim.corpora.UciCorpus.save_corpus¶
-
static
UciCorpus.
save_corpus
(fname, corpus, id2word=None, progress_cnt=10000, metadata=False)[source]¶ Save a corpus in the UCI Bag-of-Words format.
There are actually two files saved: fname and fname.vocab, where fname.vocab is the vocabulary file.
This function is automatically called by UciCorpus.serialize; don’t call it directly, call serialize instead.