You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting errors when trying to load the model. Do you have any suggestions?
model = Word2Vec.load('./models/complete.model')
Traceback (most recent call last):
File "", line 1, in
File "/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py", line 1934, in load
raise ae
File "/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py", line 1922, in load
model = super(Word2Vec, cls).load(*args, **kwargs)
File "/home/user/.local/lib/python3.8/site-packages/gensim/utils.py", line 486, in load
obj = unpickle(fname)
File "/home/user/.local/lib/python3.8/site-packages/gensim/utils.py", line 1458, in unpickle
return _pickle.load(f, encoding='latin1') # needed because loading from S3 doesn't support readline()
AttributeError: Can't get attribute 'Vocab' on <module 'gensim.models.word2vec' from '/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py'>
Update: The model appears not to fail loading when using gensim=3.8.1. However, python crashes when loading. I assume memory issues (?)
The text was updated successfully, but these errors were encountered:
I installed 3.8.3, loaded the model without trouble and then saved it with .save_word2vec_format('vectors.bin', binary=True). This allows the model to be read with latest gensim
I'm getting errors when trying to load the model. Do you have any suggestions?
model = Word2Vec.load('./models/complete.model')
Traceback (most recent call last):
File "", line 1, in
File "/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py", line 1934, in load
raise ae
File "/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py", line 1922, in load
model = super(Word2Vec, cls).load(*args, **kwargs)
File "/home/user/.local/lib/python3.8/site-packages/gensim/utils.py", line 486, in load
obj = unpickle(fname)
File "/home/user/.local/lib/python3.8/site-packages/gensim/utils.py", line 1458, in unpickle
return _pickle.load(f, encoding='latin1') # needed because loading from S3 doesn't support readline()
AttributeError: Can't get attribute 'Vocab' on <module 'gensim.models.word2vec' from '/home/user/.local/lib/python3.8/site-packages/gensim/models/word2vec.py'>
Update: The model appears not to fail loading when using gensim=3.8.1. However, python crashes when loading. I assume memory issues (?)
The text was updated successfully, but these errors were encountered: