Skip to content
Discussion options

You must be logged in to vote

You can have an unlabeled dependency tree with heads without deps*, but deps don't really make sense without heads. A token is only nsubj in relation to some other token, not on its own. You do need heads to go along with deps in a Doc or you will get the default behavior that each token is the root of its own independent tree, which leads to each token being its own sentence. When creating a Doc, heads will always override sent_starts if both are set.

(*For technical reasons in spacy you should use a placeholder label like dep instead of an empty dep label if you create an unlabeled dependency tree.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / doc Feature: Doc, Span and Token objects
2 participants
Converted from issue

This discussion was converted from issue #8859 on August 02, 2021 07:08.