huggingface / neuralcoref

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

Latest neuralcoref causes core dump #283

Closed delip closed 3 years ago

delip commented 4 years ago

Shortest code to replicate:

import en_core_web_lg
import neuralcoref

nlp = en_core_web_lg.load()
neuralcoref.add_to_pipe(nlp)
text ="""
Donald Trump was released from Walter Reed Hospital. 
He is back to being careless as usual.
Doctors at Walter Reed can't do anything about it. """
doc = nlp(text)
svlandeg commented 4 years ago

To use a recent version of spaCy, you'll have to install that first, and then build neuralcoref from source.

See also https://github.com/huggingface/neuralcoref/issues/197