huggingface / huggingface/neuralcoref

appositive noun phrase

Open
#309 1 comment 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C
Stars
2.9k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

Hi,

I run into several cases that when appositive noun or noun phrase follows another noun phrase, the coreference is not resolved to the main phrase as expected.

For example:
**text** = "**Princess Marie-Cécile of Prussia (Marie-Cécile Kira Viktoria Luise; born 28 May 1942 in Cadinen, Kreis Elbing)** is the daughter of Louis Ferdinand, Prince of Prussia, and **his** wife is Grand Duchess Kira Kirillovna of Russia, **Her** paternal grandparents were William, German Crown Prince, and Duchess Cecilie of Mecklenburg-Schwerin; maternally, **she** is a granddaughter of Cyril Vladimirovich, Grand Duke of Russia, and Princess Victoria Melita of Saxe-Coburg and Gotha"

**doc._.coref_resolved** = "Princess Marie-Cécile of Prussia (Marie-Cécile Kira Viktoria Luise; born 28 May 1942 in Cadinen, Kreis Elbing) is the daughter of Louis Ferdinand, Prince of Prussia, and **(Marie-Cécile Kira Viktoria Luise** wife is Grand Duchess Kira Kirillovna of Russia, **(Marie-Cécile Kira Viktoria Luise** paternal grandparents were William, German Crown Prince, and Duchess Cecilie of Mecklenburg-Schwerin; maternally, **(Marie-Cécile Kira Viktoria Luise** is a granddaughter of Cyril Vladimirovich, Grand Duke of Russia, and Princess Victoria Melita of Saxe-Coburg and Gotha"

Expected to be resolved as `Princess Marie-Cécile of Prussia`, instead of `(Marie-Cécile Kira Viktoria Luise`.

Code:
```
import neuralcoref
neuralcoref.add_to_pipe(nlp, greedyness=0.55)
```

Environment:
> spacy: 2.3.5
> neuralcoref: 4.0

Best Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.