gensim.matutils.Scipy2Corpus

class gensim.matutils.Scipy2Corpus(vecs)[source]

Convert a sequence of dense/sparse vectors into a streamed gensim corpus object.

This is the mirror function to corpus2csc.

Methods

__init__(vecs) vecs is a sequence of dense and/or sparse vectors, such as a 2d numpy array,