gensim.matutils.Dense2Corpus

class gensim.matutils.Dense2Corpus(dense, documents_columns=True)[source]

Treat dense numpy array as a sparse, streamed gensim corpus.

No data copy is made (changes to the underlying matrix imply changes in the corpus).

This is the mirror function to corpus2dense.

Methods

__init__(dense[, documents_columns])