Comments (14)
If I restart the or reload the program it works fine for the first time and gives this error the second time I execute it!!
from neuralcoref.
Indeed, that arise when you do several successive en_coref_sm.load()
(see my longer discussion in #52 ). You can try to load the model only once and pass around the nlp object to fix it for now.
This case seems to be quite common so I will add something to fix it. I keep you updated.
from neuralcoref.
Ok, I have updated the models, it should be fixed now. Please try the new model and tell me if it doesn't for you.
from neuralcoref.
Okay i'll try it!!!
from neuralcoref.
It still gives me the same error when I try executing the second time.
from neuralcoref.
Hi @humehta, can you execute the following script and tell me what it displays:
import en_coref_sm
with open(en_coref_md.__file__.replace('__init__.py', 'neuralcoref/neuralcoref.pyx')) as f:
l = list(f.readlines())
print(l[525])
If you have the latest version of neuralcoref installed, it should print something like:
if not Doc.has_extension('huggingface_neuralcoref'):
from neuralcoref.
Yes it gives me the following line:
if not Doc.has_extension('huggingface_neuralcoref'):
ALso you have imported the wrong model
from neuralcoref.
Hey @thomwolf any updates?
from neuralcoref.
Well I must say I have no idea what happening on your system. I can't seems to reproduce this bug with the latest version that you seems to have too (the one that says if not Doc.has_extension('huggingface_neuralcoref'):
).
Can you give me a detailed walk-thought of all the steps to reproduce the bug?
from neuralcoref.
I try running it on my jupyter notebook the first time I run and it runs successfully but when I edit the sentence or in fact run it the second time it gives the above error.
from neuralcoref.
from neuralcoref.
can you show me a picture or a detailed script of what command you are running?
from neuralcoref.
Oh another idea, maybe try reinstalling a clean version of NeuralCoref without using the cached version by using this command:
pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL
from neuralcoref.
This should also be fixed in the latest release (4.0).
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 HOT 1
- 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 8
- 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.