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
word2vec pickle error help #860
Comments
How was the model in file 'en.model' initially created and saved? (Was it using the same versions of Python, gensim, OS, etc?) |
I got the model from: |
Looking at their code (https://github.com/devmount/GermanWordEmbeddings/blob/c2b603a07d968146995ee9dde54a25fd0aa8586a/training.py#L56), I see they've saved the model via I can also tell from the included notebook that Python 2.7.6 was used. (See the bottom of: https://raw.githubusercontent.com/devmount/GermanWordEmbeddings/master/code/training.ipynb). So if you still have problems after using |
@Max-programmer Did using Python 2 help? If yes, then I would like to close this issue. |
@tmylk: I got sick, will try it out tomorrow or saturday and will post about the results here. Thanks in advance! |
Thanks, you can close the issue now. |
Hello,
I am new to gensim and am trying to load an english word2vec model with my python script model.py and test it:
Now I googled and found out it is an error caused by pickling it. A suggestion is to use:
pickle.load(file_obj, encoding='latin1')
But how do I apply that suggestion? Or is there another way to solve the problem?
The text was updated successfully, but these errors were encountered: