UniversalDependencies/tools

Two new lines result in multiple root error in iwpt20_xud_eval

Closed this issue · 2 comments

raise UDError("There are multiple roots in a sentence")

If sentences are separated by two new lines instead of one, the script fails on this line because it finds that there is not exactly one root: there is none. Running into this error for this is a bit confusing, maybe two new lines should be caught beforehand, or the error message could be updated.

HI Myriam,
we'll look at it. Thanks for the report.

Best,
Djamé

Fixed