-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
The example 'alternatives.2.0.0.folia.xml' contains invalid FoLiA
Excerpt:
<altlayers xml:id="example.p.1.s.1.alt.1">
<chunking>
<chunk xml:id="example.p.1.s.1.alt.1.chunk.1" confidence="0.001">
<wref id="example.p.1.s.1.w.1" t="The" />
<wref id="example.p.1.s.1.w.2" t="Dalai" />
</chunk>
<chunk xml:id="example.p.1.s.1.alt.1.chunk.2" confidence="0.001">
<wref id="example.p.1.s.1.w.2" t="Lama" />
<wref id="example.p.1.s.1.w.4" t="greeted" />
</chunk>
<chunk xml:id="example.p.1.s.1.alt.1.chunk.3" confidence="0.001">
<wref id="example.p.1.s.1.w.5" t="him" />
<wref id="example.p.1.s.1.w.6" t="." />
</chunk>
</chunking>
</altlayers>The problem is with the <wref id="example.p.1.s.1.w.2" t="Lama" />
Either it should contain t="Dalai" OR (more plausible) the id should be:
id="example.p.1.s.1.w.3
This problem is not detected by foliavalidator. The latest development version of folialint DOES catch this:
XML error: the 't' value of <wref id="example.p.1.s.1.w.2" t="Lama"> for textclass 'current' doesn't match any value of the refered word for that class
Reactions are currently unavailable