Two roots in a single sentence #10226
-
Hello, I am working on the Korean spaCy model and I run into the following issue. Could you please help me solve it? Our team is developing a dataset for Korean and we put The training dataset has Also, on a separate note, when I run
The error was gone once I changed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What does 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 |
Beta Was this translation helpful? Give feedback.
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
androot
in your training data somehow? (At what point are you editing the dependency labels for this?)