-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Doc2Vec' object has no attribute 'syn0' #6
Comments
Hi, I'm not the creator of this code but I've used it recently. The issues working with old pre-trained models are mentioned in this thread. I can run this code in Python 3.7.0 (Gensim 3.4.0) using As far as I know, I should be obtaining the expected results. |
@simon-roca Thank you for the comment. Before getting your comment, I was ended up changing all gensim-related syntax for the recent version. I leave my fork for someone having the same issue. |
@sihwapark Hi, I have tried your version, however, when executing the code, it overflows my 16 GB of RAM and raises a memory error. Can that be possible that it needs so much RAM?
What were your experiences? |
kaka, i gave 2 day to fix all syntax. filled with tired |
I also got the Memory error when I ran the get_labels.py -cg, although there is an enough memory. Can anyone give any suggestions? |
Hi,
I am trying to run the pre-trained system and get the labels but I got an error below:
The main error is AttributeError: 'Doc2Vec' object has no attribute 'syn0'
I am using Python 3.6.5 with gensim 3.6.0. I found Doc2Vec doesn't have syn0 as an attribute but it is available in
model.wv.syn0
. Is it okay to only changemodel1.syn0
tomodel1.wv.syn0
in code?Or at least I would like to know which version of Python and gensim you worked with when you implemented the code.
The text was updated successfully, but these errors were encountered: