stanza
stanza copied to clipboard
Stanza 1.8.1 mislabels `nsubj` relationship as `compound`
Describe the bug
I came across a set of sentences where Stanza mistakenly labels nsubj relationships as compound. This occurs with a noun in relation to the word "hops".
To Reproduce Steps to reproduce the behavior:
- Go to http://stanza.run/ or input into stanza either sentence:
Zac hops, and Rod is on the box.
The box hops and hops.
- See error – stanza fails to find the
nsubjbetween "Zac hops" and "box hops":
Expected behavior
The parse returns a nsubj relationship between "Zac hops" and "box hops".
Environment (please complete the following information):
- OS: MacOS Ventura 13.4
- Python version: Python 3.12.2 using Poetry 1.8.2
- Stanza version: 1.6.1
Additional context This issue also appears in Stanza 1.8.1. Have not tested it with Stanza 1.7.x. Screenshot is from Stanza 1.6.1.