huggingface / neuralcoref

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

Replace doc with coref_resolved_doc and feed into the pipeline #285

Closed Fan-Luo closed 2 years ago

Fan-Luo commented 3 years ago

Hi,

Would you consider adding an argument to optionally enable generating a new coref_resolved_doc after replacing the text with coreference resolved text, and feed the coref_resolved_doc to the pipeline?

coref_resolved_doc = nlp(doc._.coref_resolved)
return coref_resolved_doc

Thanks

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.