jhlau / doc2vec

Python scripts for training/testing paragraph vectors
Apache License 2.0
640 stars 191 forks source link

'Doc2Vec' object has no attribute 'neg_labels' #23

Open Ghaliamus opened 6 years ago

Ghaliamus commented 6 years ago

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?

jhlau commented 6 years ago

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.

Ghaliamus commented 6 years ago

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

cstenkamp commented 3 years ago

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?

Youngchichi commented 8 months ago

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