huggingface / huggingface/neuralcoref
Parsing Kills Python
- Dominant language
- C
- Stars
- 2.9k
- Forks
- 467
- PR merge metrics
- No merged PRs in 30d
Description
I'm running the following example with the following system specs
- mac osx 11.1 in
- Pycharm 2019.3.5 Community edition
- python 3.6
- spacy 2.2.4
- neuralcoref 4.0
I installed neuralcoref using the `pip install neuralcoref --no-binary neuralcoref`
```
import spacy
nlp = spacy.load('en_core_web_sm')
import neuralcoref
coref = neuralcoref.NeuralCoref(nlp.vocab)
nlp.add_pipe(coref, name='neuralcoref')
doc = nlp(u'My sister has a dog. She loves him.')
t = doc._.has_coref
d = doc._.coref_clusters
```
I'm getting the following warnings then it kills python.
```
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.morphology.Morphology size changed, may indicate binary incompatibility. Expected 104 from C header, got 112 from PyObject
return f(*args, **kwds)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 96 from C header, got 104 from PyObject
return f(*args, **kwds)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: spacy.tokens.span.Span size changed, may indicate binary incompatibility. Expected 72 from C header, got 80 from PyObject
return f(*args, **kwds)
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.