gensim.corpora.SvmLightCorpus.doc2line

static SvmLightCorpus.doc2line(doc, label=0)[source]

Output the document in SVMlight format, as a string. Inverse function to line2doc.