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

_pickle.UnpicklingError: invalid load key, 'v'. #2

Open
echojiashu opened this issue Nov 7, 2019 · 0 comments
Open

_pickle.UnpicklingError: invalid load key, 'v'. #2

echojiashu opened this issue Nov 7, 2019 · 0 comments

Comments

@echojiashu
Copy link

echojiashu commented Nov 7, 2019

Problem description:
I am running this project(research-summarization) in PyCharm with the following environment:
Windows-10
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)]
NumPy 1.14.2
SciPy 1.1.0
gensim 3.8.1
FAST_VERSION 1

I am running this project with the default configuration:
"The Opinosis dataset is included, and main.py is configured to run on this dataset by default."
But I got the following problems, I need some advice for debugging.
Thank you very much.

X:\python-workspace\research-summarization-master\venv\Scripts\python.exe X:/python-workspace/research-summarization-master/main.py
Traceback (most recent call last):
File "X:/python-workspace/research-summarization-master/main.py", line 103, in
dataset_name=dataset_name
File "X:\python-workspace\research-summarization-master\enrichers\pipeline.py", line 17, in init
self.enrichers[e] = enrich_class(*args, **kwargs)
File "X:\python-workspace\research-summarization-master\enrichers\summarizer.py", line 89, in init
model = Word2Vec.load(files.get(model_path, model_path)).wv
File "C:\Users\UNI\Anaconda3\envs\python35\lib\site-packages\gensim\models\word2vec.py", line 1330, in load
model = super(Word2Vec, cls).load(*args, **kwargs)
File "C:\Users\UNI\Anaconda3\envs\python35\lib\site-packages\gensim\models\base_any2vec.py", line 1244, in load
model = super(BaseWordEmbeddingsModel, cls).load(*args, **kwargs)
File "C:\Users\UNI\Anaconda3\envs\python35\lib\site-packages\gensim\models\base_any2vec.py", line 603, in load
return super(BaseAny2VecModel, cls).load(fname_or_handle, **kwargs)
File "C:\Users\UNI\Anaconda3\envs\python35\lib\site-packages\gensim\utils.py", line 426, in load
obj = unpickle(fname)
File "C:\Users\UNI\Anaconda3\envs\python35\lib\site-packages\gensim\utils.py", line 1384, in unpickle
return _pickle.load(f, encoding='latin1')
_pickle.UnpicklingError: invalid load key, 'v'.

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