Skip to content

Two roots in a single sentence #10226

Discussion options

You must be logged in to vote

What does spacy debug data -V show for the dependency parser?

That error is usually related to having very rare labels or some other kind of error in your training data. The parser shouldn't ever predict two roots for the same sentence, where the root is the head of the dependency tree graph itself, ignoring the labels.

This shouldn't usually happen (it should be converted automatically in most cases), but maybe you've ended up with both ROOT and root in your training data somehow? (At what point are you editing the dependency labels for this?)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kanayer
Comment options

@adrianeboyd
Comment options

@kanayer
Comment options

@adrianeboyd
Comment options

@ivan-kleshnin
Comment options

Answer selected by kanayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang / ko Korean language data and models training Training and updating models feat / parser Feature: Dependency Parser
3 participants