proycon / folia

FoLiA: Format for Linguistic Annotation - FoLiA is a rich XML-based annotation format for the representation of language resources (including corpora) with linguistic annotations. A wide variety of linguistic annotations are supported, making FoLiA a useful format for NLP tasks and data interchange. Note that the actual Python library for processing FoLiA is implemented as part of PyNLPl, this contains higher-level tools that use the library as well as the full documentation, validation schemas, and set definitions
http://proycon.github.io/folia/
GNU General Public License v3.0
60 stars 10 forks source link

AbstractSpanRole needs TEXTCLASS attribute #57

Closed kosloot closed 5 years ago

kosloot commented 5 years ago

"hd" and "Dependent" nodes are AbstractSpanRole nodes and may NOT have TEXTCLASS. But they contain WordRefs which are textclass dependent. Just like entities, which are AbstractSpanAnnotation and MAY have TEXTCLASS

I think this is unbalanced, probably an oversight.

FWIW: Do we need this Role vs. Annotation distinction?

proycon commented 5 years ago

I think they should probably inherit their textclass from the parent span annotation, as I don't really see a use case for different textclasses within a single span annotation element.

kosloot commented 5 years ago

I solved this (more elegant I think) in libfolia for 2.0. closing this