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
Currently, spacy==2.0.18 fails like this when trying to load the coref model: #120
I downgraded to spacy==2.0.12 and thinc==6.10.3 and when I try to load the coref model, and now I get:
(venv) motoki@tmjr:~/repo-name$ python -c "import spacy; nlp = spacy.load('en_coref_md')"
...
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 114, in load_model
return load_model_from_package(name, **overrides)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 135, in load_model_from_package
return cls.load(**overrides)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/en_coref_md/__init__.py", line 14, in load
nlp = load_model_from_init_py(__file__, **overrides)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 173, in load_model_from_init_py
return load_model_from_path(data_path, meta, **overrides)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 156, in load_model_from_path
return nlp.from_disk(model_path)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/language.py", line 653, in from_disk
util.from_disk(path, deserializers, exclude)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/language.py", line 641, in <lambda>
self.vocab.from_disk(p) and _fix_pretrained_vectors_name(self))),
File "vocab.pyx", line 380, in spacy.vocab.Vocab.from_disk
File "vectors.pyx", line 391, in spacy.vectors.Vectors.from_disk
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "vectors.pyx", line 369, in spacy.vectors.Vectors.from_disk.load_key2row
File "vectors.pyx", line 370, in spacy.vectors.Vectors.from_disk.load_key2row
File "/home/motoki/repo-name/venv/lib/python3.6/site-packages/msgpack_numpy.py", line 175, in unpack
return _unpack(stream, **kwargs)
File "msgpack/_unpacker.pyx", line 229, in msgpack._unpacker.unpack
File "msgpack/_unpacker.pyx", line 200, in msgpack._unpacker.unpackb
TypeError: unhashable type: 'dict'
I've been trying various msgpack versions to no avail
Currently,
spacy==2.0.18
fails like this when trying to load the coref model: #120I downgraded to
spacy==2.0.12
andthinc==6.10.3
and when I try to load the coref model, and now I get:I've been trying various
msgpack
versions to no availThanks
The text was updated successfully, but these errors were encountered: