huggingface / neuralcoref

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

Parsing Kills Python #302

Open mjfox3 opened 3 years ago

mjfox3 commented 3 years ago

I'm running the following example with the following system specs

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)
svlandeg commented 3 years ago

Could you try installing from source as explained in this thread?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.