Repository navigation
Understanding the 'heads' attribute in a Doc type #12578
|
The documentation states the following:
But I placed a Example sentence: This is an example sentence of random length. One more sentence of a different length, with a tad more punctuation!! Here is a list of each individual word with their corresponding Maybe just a rephrasing would help, because I can't quite decipher what this is telling me 😅 |
Replies: 1 comment 2 replies
|
The head is the same as if you'd looked up that index in the doc with |
The head is the same as if you'd looked up that index in the doc with
doc[head.i], so the head of "This" is "is", "is" is the head of itself (ROOT), the head of "an" is "sentence", etc.