Comments (14)
Happy to hear that.
By the way, you don't even need to install spaCy before neuralcoref, the recommended way to install NeuralCoref with conda (assuming MODEL_URL
contains the NeuralCoref model URL) :
conda create -n myenv
source activate myenv
pip install MODEL_URL
from neuralcoref.
I tried downgrading spaCy to version 2.0.0 and got a slightly different value error
ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 64, got 112
from neuralcoref.
I think i also experienced that problem when I tried upgrading from 2.0 in 3.0 in another environment. in another clean virtual environment spacy keeps telling me I can't find the module and if I try to import it direcly it tells me "ImportError: cannot import name 'load_model_from_init_py'"
from neuralcoref.
Did an extra run to check if interpreter and right pip was used within conda and got the same message: "ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 88, got 112"
from neuralcoref.
Hi @BBCMax and @AYEG,
I can't reproduce your error with the latest spaCy and neuralcoref models.
Two questions:
- are you on windows/mac/linux ?
- do you have an error when you use
en_coref_sm
?
from neuralcoref.
Hey!
I am running this on a mac, and I had the same error with en_coref_sm
.
However I managed to get this working yesterday with the most recent version of spaCy and neuralcoref models (and en_coref_md
). I had to do a fresh install of spaCy, its models, and neuralcoref - but I can't explain what would have changed in this process. Sorry for the confusion!
from neuralcoref.
Hi, yes also running on a mac and was unable to use en_coref_sm or en_coref_md inside newly created conda environments, tried different versions of spacy.
I gave it another try just now to see,
I created a conda environment, activated it..
conda install spacy
python -m spacy download en_core_web_sm
pip install https://github.com/huggingface/neuralcoref-models/releases/download/en_coref_sm-3.0.0/en_coref_sm-3.0.0.tar.gz
During Pip install I get two red lines
Successfully built en-coref-sm
mkl-random 1.0.1 requires cython, which is not installed. <----
mkl-fft 1.0.0 requires cython, which is not installed. <-----
Installing collected packages: en-coref-sm, pathlib, regex
when i try to run, when it loads the model into spacy or when I import the module directly I get:
File "strings.pxd", line 23, in init en_coref_sm.neuralcoref.neuralcoref
ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 88, got 112
from neuralcoref.
Interesting, thanks.
Maybe the conda version of spaCy is older than the pip version.
Can you try pip install spacy
instead of conda in a clean environment?
from neuralcoref.
I did this in a clean environment via pip initially..
from neuralcoref.
Thank you, It is working and it is quick! Amazing work
from neuralcoref.
@BBCMax if you still have the problem try reinstalling a clean version of NeuralCoref like this:
pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL
from neuralcoref.
Thanks @thomwolf - all ok now, but I hope it can help someone else suffering from similar issues!
from neuralcoref.
Thanks for the heads up
from neuralcoref.
Thanks @thomwolf - all ok now, but I hope it can help someone else suffering from similar issues!
hey I have same problem. Can you please help me out?
from neuralcoref.
Related Issues (20)
- Wrong average embedding during inference due to a small bug in neuracoref.pyx
- Missing implementation of doc embeddings during inference
- Wrong Mention Type one-hot vectors during training due to a small bug in dataset.py
- Training Dataset Format
- Can't install neuralcoref, keep getting this error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 HOT 4
- Error in training without changing anything from the default instructions
- GPU support - cuda 11.1 - TypeError: Unsupported type <class 'numpy.ndarray'>
- (base) C:\Users\sk136\neuralcoref>python -m neuralcoref.train.learn --train ./data/train/ --eval ./data/dev/ facing problem while executing.. this command
- Results completely differ from web-demo
- Compatibility with Spacy 3+ HOT 7
- Regarding finetuning neuralcoref
- dels HOT 1
- neuralcoref not supporting python 3.9 version HOT 1
- spacy.strings.StringStore size changed, may indicate binary incompatibility HOT 5
- Dependency Problem HOT 1
- I can't install neuralcoref HOT 7
- Unresolved dependencies?
- Kernel crashes when trying to run demo code HOT 1
- Process finished with exit code -1073741819 (0xC0000005)
- installation failed with HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuralcoref.