gensim.corpora.SvmLightCorpus.__init__

SvmLightCorpus.__init__(fname, store_labels=True)[source]

Initialize the corpus from a file.

Although vector labels (~SVM target class) are not used in gensim in any way, they are parsed and stored in self.labels for convenience. Set store_labels=False to skip storing these labels (e.g. if there are too many vectors to store the self.labels array in memory).