Gensim: cannot import name 'LabeledSentence'

Created on 8 Feb 2018  路  1Comment  路  Source: RaRe-Technologies/gensim

Description

LabeledSentence is not being imported from gensim.models.doc2vec.

from gensim.models.doc2vec import LabeledSentence

the error I am getting is
cannot import name 'LabeledSentence'

bug difficulty easy

Most helpful comment

@thepurpleowl hello, thanks for the report, right now you can use

from gensim.models.deprecated.doc2vec import LabeledSentence (FYI this is deprecated stuff),
or better use
from gensim.models.doc2vec import TaggedDocument

CC: @manneshiva

>All comments

@thepurpleowl hello, thanks for the report, right now you can use

from gensim.models.deprecated.doc2vec import LabeledSentence (FYI this is deprecated stuff),
or better use
from gensim.models.doc2vec import TaggedDocument

CC: @manneshiva

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johann-petrak picture johann-petrak  路  3Comments

menshikh-iv picture menshikh-iv  路  4Comments

mmunozm picture mmunozm  路  3Comments

vlad17 picture vlad17  路  4Comments

volj1 picture volj1  路  4Comments