Skip to content
Discussion options

You must be logged in to vote

.noun_chunks isn't a separate noun-chunker, it's a fixed rule that reads off the dependency parse. So (CVD isn't the model "choosing" a bad chunk, it's a side effect of how trf parsed the fragment.

The rule (spaCy's English syntax iterator) walks every NOUN/PROPN/PRON, and for the ones whose dep_ is a head label (nsubj, dobj, appos, attr, pobj, ROOT, ...) it yields the span from that token's left_edge to the token itself:

yield word.left_edge.i, word.i + 1, np_label

In your trf parse, CVD is tagged appos (a head label), and the ( got attached as a left dependent inside CVD's subtree, so CVD.left_edge is (. Span runs (CVD = (CVD. Check doc[4].left_edge and you'll see it.

Then it gets wo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thkuo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants