Skip to content
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

error when loading pre-trained model: _pickle.UnpicklingError: could not find MARK #15

Open
doubleplusplus opened this issue Dec 5, 2023 · 0 comments

Comments

@doubleplusplus
Copy link

I downloaded the model from the link in the config file, but genseim/utils.py can't load it:

 INFO: loading Word2Vec object from models/word2vec_model.tar.gz
Traceback (most recent call last):
  File "/home/jamie/OWL2Vec-Star/OWL2Vec_Standalone.py", line 223, in <module>
    model_ = gensim.models.Word2Vec.load(config['MODEL']['pre_train_model'])
  File "/home/jamie/.conda/envs/onto/lib/python3.9/site-packages/gensim/models/word2vec.py", line 1953, in load
    model = super(Word2Vec, cls).load(*args, **kwargs)
  File "/home/jamie/.conda/envs/onto/lib/python3.9/site-packages/gensim/utils.py", line 486, in load
    obj = unpickle(fname)
  File "/home/jamie/.conda/envs/onto/lib/python3.9/site-packages/gensim/utils.py", line 1462, in unpickle
    return _pickle.load(f, encoding='latin1')  # needed because loading from S3 doesn't support readline()
_pickle.UnpicklingError: could not find MARK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant