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

k0nserv picture k0nserv  路  3Comments

Laubeee picture Laubeee  路  3Comments

mmunozm picture mmunozm  路  3Comments

menshikh-iv picture menshikh-iv  路  3Comments

coopwilliams picture coopwilliams  路  3Comments