proycon / foliatools

A number of command-line tools for working with FoLiA (Format for Linguistic Annotation). Includes validators, converters, visualisers, and more.
GNU General Public License v3.0
10 stars 4 forks source link

the validator rejects valid folia using 'alias'-es for set definitions #4

Closed kosloot closed 5 years ago

kosloot commented 5 years ago

ml.txt Given the attached file, I would expect no errors, but the validator states:

VALIDATION ERROR on full parse by library (stage 2/3), in ml.xml
ParseError: FoLiA exception in handling of <w> @ line 52: [DeclarationError] Set 'tokconfig-nld' is used for Word <w>, but has no declaration!

This is not correct, as an declaration exists, using an alias:

      <token-annotation alias="tokconfig-nld" set="https://raw.githubusercontent.com/LanguageMachines/uctodata/master/setdefinitions/tokconfig-nld.foliaset.ttl">
        <annotator processor="ucto.1"/>
      </token-annotation>