How to use Doc.__init__ with heads #8334
-
I'm trying to create a Doc from the constructor with specified heads like this:
The goal is for 'cat' to be the root and also the head for 'The' like this. I've tried many combinations of values for heads, but the result of
is always
or a value error. I'm using spacy 3.0.6. I'm completely stumped and it would be great if the docs could provide more details of how to do this correctly. Thank you! Which page or section is this issue related to? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry you're having trouble with this. So this should be issuing a warning or something, but if you pass heads without deps they are not used. This works the way you want it to:
|
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with this.
So this should be issuing a warning or something, but if you pass heads without deps they are not used. This works the way you want it to: