gensim.matutils.sparse2full()

gensim.matutils.sparse2full(doc, length)[source]

Convert a document in sparse document format (=sequence of 2-tuples) into a dense numpy array (of size length).

This is the mirror function to full2sparse.