huggingface / neuralcoref

✨Fast Coreference Resolution in spaCy with Neural Networks
https://huggingface.co/coref/
MIT License
2.84k stars 474 forks source link

Cannot import neuralcoref #294

Closed kkaraoglan closed 3 years ago

kkaraoglan commented 3 years ago

I tried to install xyz following the installation instructions. I am getting the following errors please help?

Spacy Version : 2,3,5 neuralcoref : 4.0

File "", line 1, in File "C:\Program Files\JetBrains\PyCharm 2019.3\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm 2019.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/kkaraoglan/PycharmProjects/retina-sdk.py/tests/integration/CorefRes.py", line 2, in nlp = spacy.load('en') File "C:\Users\kkaraoglan\AppData\Roaming\Python\Python37\site-packages\spacyinit.py", line 30, in load return util.load_model(name, overrides) File "C:\Users\kkaraoglan\AppData\Roaming\Python\Python37\site-packages\spacy\util.py", line 172, in load_model return load_model_from_path(Path(name), overrides) File "C:\Users\kkaraoglan\AppData\Roaming\Python\Python37\site-packages\spacy\util.py", line 198, in load_model_from_path meta = get_model_meta(model_path) File "C:\Users\kkaraoglan\AppData\Roaming\Python\Python37\site-packages\spacy\util.py", line 253, in get_model_meta raise IOError(Errors.E053.format(path=meta_path)) OSError: [E053] Could not read meta.json from en\meta.json

iris-lux commented 3 years ago

I'm having a similar issue, I tried installing this today.

OlegDurandin commented 3 years ago

Hi, there is compatibility with last versions of SpaCy. When I have had this issue, I use old version of SpaCy - try 2.1.0 version: !pip install spacy==2.1.0

svlandeg commented 3 years ago

I'll merge this with two other related threads that have more information: https://github.com/huggingface/neuralcoref/issues/197 and https://github.com/huggingface/neuralcoref/issues/295 and close this one.