huggingface / neuralcoref

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

Incorrect coreference inferred #280

Closed as-stevens closed 2 years ago

as-stevens commented 4 years ago

Hi all,

I am evaluating the neural coref library and it seems to works for the examples provided but for the cases where the noun is mentioned after the pronoun, it does not work. Maybe I am missing something?

doc3 = nlp(u'we want to make it accessible for every business. That’s our mission at xyz.')

print(doc3._.hascoref) print(doc3..corefclusters) for ent in doc3.ents: print(ent) print(ent..coref_cluster)

Output:

True [we: [we, our]] xyz None

I am expecting the xyz to be coreference as [we, our] which is not the case.

Please suggest.

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.