Skip to content

Understanding the 'heads' attribute in a Doc type #12578

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JeremyCraigMartinez
Comment options

@adrianeboyd
Comment options

Answer selected by JeremyCraigMartinez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / parser Feature: Dependency Parser
2 participants