gensim.corpora.IndexedCorpus

class gensim.corpora.IndexedCorpus(fname, index_fname=None)[source]

Methods

__init__(fname[, index_fname]) Initialize this abstract base class, by loading a previously saved index from index_fname (or fname.index if index_fname is not set).
load(fname[, mmap]) Load a previously saved object from file (also see save).
save(*args, **kwargs)
save_corpus(fname, corpus[, id2word, metadata]) Save an existing corpus to disk.
serialize(serializer, fname, corpus[, ...]) Iterate through the document stream corpus, saving the documents to fname and recording byte offset of each document.