huggingface / neuralcoref

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

Runtime warnings on import #289

Closed networks1 closed 3 years ago

networks1 commented 3 years ago

Hi. Trying to run the example code from spaCy universe. Getting the following runtime warnings when importing:

>>> import neuralcoref

<frozen importlib._bootstrap>:219: RuntimeWarning: spacy.morphology.Morphology size changed, may indicate binary incompatibility. Expected 104 from C header, got 112 from PyObject   

<frozen importlib._bootstrap>:219: RuntimeWarning: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 96 from C header, got 112 from PyObject    

<frozen importlib._bootstrap>:219: RuntimeWarning: spacy.tokens.span.Span size changed, may indicate binary incompatibility. Expected 72 from C header, got 80 from PyObject

This is a fresh install of spaCy and neuralcoref (python3 on WSL, in case that matters).

Not sure if it's related to the above, but also got a segmentation fault after

nlp = spacy.load('en')

neuralcoref.add_to_pipe(nlp)

doc1 = nlp('My sister has a dog. She loves him.')
svlandeg commented 3 years ago

Hi! Please see Issue #197 for installation instructions with a recent spaCy version!