doc2vec icon indicating copy to clipboard operation
doc2vec copied to clipboard

'Doc2Vec' object has no attribute 'neg_labels'

Open Ghaliamus opened this issue 6 years ago • 4 comments

Hello, thank you for sharing such models, many thanks. I'm getting this error when I run the infer_text.py code even though I'm using your forked version of gensim. Do you have any suggestion, please?

Ghaliamus avatar Jun 13 '18 20:06 Ghaliamus

Looks like there's another (closed) issue on this. Are you using the given pre-trained models? Or it's a model you've trained up yourself.

jhlau avatar Jun 14 '18 00:06 jhlau

Hello Jhlau, many thanks for your kind prompt response. Yes, I'm using the pre-trained models.

Ghaliamus avatar Jun 14 '18 18:06 Ghaliamus

same issue. Using the pre-trained model (both pretrained doc2vec as specified in your readme don't work). Issue #22 is closed, but taking your version doesn't solve the problem - as also many people commented after the issue was closed. Somebody said that an older version of gensim works, but I went down as far as the oldest gensim-version that has doc2vec, without any success. Could you maybe elaborate what needs to be done?

cstenkamp avatar Sep 30 '20 17:09 cstenkamp

hey,friends,my environment is python 2.7.0,gensim is 2.0.0,it‘s ok,you can try

Youngchichi avatar Nov 10 '23 04:11 Youngchichi