Discrepancy between dependency tree shown via displacy vs. .children #5454
-
How to reproduce the behaviourConsider the sentence And when accessing the children via
There is a discrepancy between the tree structure shown by Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
By default displacy simplifies some arcs to make the parse easier to read. See the |
Beta Was this translation helpful? Give feedback.
-
aha! I see, sorry I was not aware. Thank you! We can close this. |
Beta Was this translation helpful? Give feedback.
By default displacy simplifies some arcs to make the parse easier to read. See the
collapse_punct
option here: https://spacy.io/api/top-level#displacy_options