gensim.corpora.BleiCorpus.save_corpus

static BleiCorpus.save_corpus(fname, corpus, id2word=None, metadata=False)[source]

Save a corpus in the LDA-C format.

There are actually two files saved: fname and fname.vocab, where fname.vocab is the vocabulary file.

This function is automatically called by BleiCorpus.serialize; don’t call it directly, call serialize instead.