UniversalDependencies / tools

Various utilities for processing the data.
GNU General Public License v2.0
205 stars 44 forks source link

bugfix: local variable 'head' referenced before assignment #99

Closed martinpopel closed 8 months ago

martinpopel commented 8 months ago

I got this error when trying to validate original GUM files with --coref. I've changed GRP to eid, in global.Entity. The global.Entity header still does not include head, so this is reported as [L6 Coref spurious-global-entity], which is OK. However, then validate.py fails because accessing the head variable before assignment.