Support for LWC dependency annotations
Change-Id: Ia4c7b39a871350d3f649597fbc67e9cf52e38e1a
diff --git a/t/corpus/WPD17/060/18486/base/tokens.xml b/t/corpus/WPD17/060/18486/base/tokens.xml
new file mode 100644
index 0000000..71f594d
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/base/tokens.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WPD17_060.18486" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="t_0" from="0" to="2" />
+ <span id="t_1" from="3" to="8" />
+ <span id="t_2" from="9" to="12" />
+ <span id="t_3" from="12" to="13" />
+ <span id="t_4" from="16" to="23" />
+ <span id="t_5" from="24" to="26" />
+ <span id="t_6" from="27" to="29" />
+ <span id="t_7" from="30" to="32" />
+ <span id="t_8" from="32" to="33" />
+ <span id="t_9" from="34" to="37" />
+ <span id="t_10" from="38" to="56" />
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/corpus/WPD17/060/18486/data.xml b/t/corpus/WPD17/060/18486/data.xml
new file mode 100644
index 0000000..ca6bae2
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/data.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="text.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<raw_text docid="WPD17_060.18486" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <metadata file="metadata.xml" />
+ <text>08 steht für: Pistole 08 MG 08, ein Maschinengewehrtyp </text>
+</raw_text>
\ No newline at end of file
diff --git a/t/corpus/WPD17/060/18486/header.xml b/t/corpus/WPD17/060/18486/header.xml
new file mode 100644
index 0000000..441bb86
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/header.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<idsHeader type="text" pattern="text" status="new" version="1.0" TEIform="teiHeader">
+ <fileDesc>
+ <titleStmt>
+ <textSigle>WPD17/060.18486</textSigle>
+ <t.title assemblage="external">WPD17/060.18486 08, In: Wikipedia - URL:http://de.wikipedia.org/wiki/08: Wikipedia, 2017</t.title>
+ </titleStmt>
+ <editionStmt version="0"/>
+ <publicationStmt>
+ <distributor/>
+ <pubAddress/>
+ <availability region="world" Default="n" status="unknown">CC-BY-SA</availability>
+ <pubDate/>
+ </publicationStmt>
+ <sourceDesc Default="n">
+ <biblStruct Default="n" status="draft">
+ <analytic>
+ <h.title type="main">08</h.title>
+ <h.title type="sub"/>
+ <h.title type="abbr" level="m"/>
+ <h.title type="abbr" level="a"/>
+ <h.author>EmausBot, u.a.</h.author>
+ <editor/>
+ <imprint/>
+ <biblScope type="subsume"/>
+ <biblScope type="pp"/>
+ <biblNote n="1"/>
+ </analytic>
+ <monogr>
+ <h.title type="main"/>
+ <editor>wikipedia.org</editor>
+ <edition>
+ <further> Dump file "dewiki-20170701-pages-meta-current.xml" retrieved from http://dumps.wikimedia.org </further>
+ <kind/>
+ <appearance/>
+ </edition>
+ <imprint>
+ <pubDate type="year">2017</pubDate>
+ <pubDate type="month">07</pubDate>
+ <pubDate type="day">01</pubDate>
+ </imprint>
+ <biblScope type="vol"/>
+ <biblScope type="volume-title"/>
+ </monogr>
+ <relatedItem type="langlink">
+ <ref target="https://ru.wikipedia.org/wiki/08" xml:lang="key">08</ref>
+ </relatedItem>
+ <relatedItem type="langlink">
+ <ref target="https://vi.wikipedia.org/wiki/08" xml:lang="key">08</ref>
+ </relatedItem>
+ <relatedItem type="langlink">
+ <ref target="https://ko.wikipedia.org/wiki/08" xml:lang="key">08</ref>
+ </relatedItem>
+ <relatedItem type="langlink">
+ <ref target="https://ja.wikipedia.org/wiki/08" xml:lang="key">08</ref>
+ </relatedItem>
+ <relatedItem type="langlink">
+ <ref target="https://en.wikipedia.org/wiki/08" xml:lang="key">08</ref>
+ </relatedItem>
+ </biblStruct>
+ <reference type="complete" assemblage="non-automatic">WPD17/060.18486 08, In: Wikipedia - URL:http://de.wikipedia.org/wiki/08: Wikipedia, 2017</reference>
+ <reference type="short" assemblage="regular">WPD17/060.18486 Wikipedia; 08, (Letzte Änderung 4.4.2013 ) 1.7.2017</reference>
+ </sourceDesc>
+ </fileDesc>
+ <encodingDesc>
+ <samplingDecl Default="n"/>
+ <editorialDecl Default="n">
+ <pagination type="no"/>
+ </editorialDecl>
+ </encodingDesc>
+ <profileDesc>
+ <creation>
+ <creatDate>2013.04.04</creatDate>
+ <creatRef>(Letzte Änderung 4.4.2013)</creatRef>
+ <creatRefShort>(Letzte Änderung 4.4.2013)</creatRefShort>
+ </creation>
+ <textClass Default="n">
+ <classCode scheme="https://en.wikipedia.org/wiki/Portal:Contents/Categories"/>
+ <catRef n="0.503211" target="topic.staat-gesellschaft.verbrechen" scheme="topic"/>
+ <catRef n="0.180474" target="topic.gesundheit-ernaehrung.gesundheit" scheme="topic"/>
+ </textClass>
+ <textDesc Default="n">
+ <textTypeArt>Enzyklopädie-Artikel</textTypeArt>
+ <textDomain/>
+ </textDesc>
+ </profileDesc>
+ </idsHeader>
\ No newline at end of file
diff --git a/t/corpus/WPD17/060/18486/lwc/dependency.xml b/t/corpus/WPD17/060/18486/lwc/dependency.xml
new file mode 100644
index 0000000..ef1a3c9
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/lwc/dependency.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<layer docid="WPD17_060.18486" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+<spanList>
+<span id="s0_n40" from="0" to="2">
+<rel label="--">
+<span from="0" to="13"/>
+</rel>
+</span>
+<span id="s0_n41" from="3" to="8">
+<rel label="MO">
+<span from="0" to="13"/>
+</rel>
+</span>
+<span id="s0_n42" from="9" to="12">
+<rel label="NK">
+<span from="0" to="13"/>
+</rel>
+</span>
+<span id="s0_n43" from="12" to="13">
+<rel label="SB">
+<span from="0" to="13"/>
+</rel>
+</span>
+<span id="s0_n44" from="16" to="23">
+<rel label="--">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n45" from="24" to="26">
+<rel label="PD">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n46" from="27" to="29">
+<rel label="AG">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n47" from="30" to="32">
+<rel label="MNR">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n48" from="32" to="33">
+<rel label="NK">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n49" from="34" to="37">
+<rel label="NK">
+<span from="0" to="10"/>
+</rel>
+</span>
+<span id="s0_n50" from="38" to="56">
+<rel label="--">
+<span from="0" to="10"/>
+</rel>
+</span>
+</spanList>
+</layer>
diff --git a/t/corpus/WPD17/060/18486/malt/dependency.xml b/t/corpus/WPD17/060/18486/malt/dependency.xml
new file mode 100644
index 0000000..cecede7
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/malt/dependency.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<layer docid="WPD17_060.18486" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+<spanList>
+<span id="s1_n1" from="0" to="2">
+<rel label="SUBJ">
+<span from="3" to="8"/>
+</rel>
+</span>
+<span id="s1_n2" from="3" to="8">
+<rel label="ROOT">
+<span from="0" to="13"/>
+</rel>
+</span>
+<span id="s1_n3" from="9" to="12">
+<rel label="OBJP">
+<span from="3" to="8"/>
+</rel>
+</span>
+<span id="s1_n4" from="12" to="13">
+<rel label="-PUNCT-">
+<span from="9" to="12"/>
+</rel>
+</span>
+<span id="s2_n1" from="16" to="23">
+<rel label="ROOT">
+<span from="16" to="10"/>
+</rel>
+</span>
+<span id="s2_n2" from="24" to="26">
+<rel label="APP">
+<span from="16" to="23"/>
+</rel>
+</span>
+<span id="s2_n3" from="27" to="29">
+<rel label="APP">
+<span from="24" to="26"/>
+</rel>
+</span>
+<span id="s2_n4" from="30" to="32">
+<rel label="APP">
+<span from="27" to="29"/>
+</rel>
+</span>
+<span id="s2_n5" from="32" to="33">
+<rel label="-PUNCT-">
+<span from="30" to="32"/>
+</rel>
+</span>
+<span id="s2_n6" from="34" to="37">
+<rel label="DET">
+<span from="38" to="56"/>
+</rel>
+</span>
+<span id="s2_n7" from="38" to="56">
+<rel label="ROOT">
+<span from="16" to="10"/>
+</rel>
+</span>
+</spanList>
+</layer>
diff --git a/t/corpus/WPD17/060/18486/struct/structure.xml b/t/corpus/WPD17/060/18486/struct/structure.xml
new file mode 100644
index 0000000..37664ee
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/struct/structure.xml
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WPD17_060.18486" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="s0" from="0" to="57" l="1">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">text</f>
+ </fs>
+ </span>
+ <span id="s1" from="0" to="0" l="2">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">front</f>
+ </fs>
+ </span>
+ <span id="s2" from="0" to="57" l="2">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">body</f>
+ </fs>
+ </span>
+ <span id="s3" from="0" to="57" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">div</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">0</f>
+ <f name="type">section</f>
+ <f name="part">N</f>
+ <f name="org">uniform</f>
+ <f name="sample">complete</f>
+ <f name="complete">y</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s4" from="0" to="15" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">p</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="part">N</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s5" from="0" to="2" l="5">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">hi</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="rend">bo</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s6" from="15" to="57" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">list</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="type">ul</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s7" from="15" to="26" l="5">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">item</f>
+ </fs>
+ </span>
+ <span id="s8" from="16" to="26" l="6">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">ref</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="target">https://de.wikipedia.org/wiki/Pistole_08</f>
+ <f name="targOrder">u</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s9" from="26" to="57" l="5">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">item</f>
+ </fs>
+ </span>
+ <span id="s10" from="27" to="32" l="6">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">ref</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="target">https://de.wikipedia.org/wiki/MG_08</f>
+ <f name="targOrder">u</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s11" from="57" to="57" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">p</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="part">N</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s12" from="57" to="57" l="5">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">gap</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="desc">template</f>
+ <f name="reason">omitted</f>
+ <f name="instant">false</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s13" from="57" to="57" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">p</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="part">N</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s14" from="57" to="57" l="5">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">gap</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="desc">template</f>
+ <f name="reason">omitted</f>
+ <f name="instant">false</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s15" from="57" to="57" l="2">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">back</f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/corpus/WPD17/060/18486/tree_tagger/morpho.xml b/t/corpus/WPD17/060/18486/tree_tagger/morpho.xml
new file mode 100644
index 0000000..b412c08
--- /dev/null
+++ b/t/corpus/WPD17/060/18486/tree_tagger/morpho.xml
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WPD17_060.18486">
+ <spanList>
+ <span id="t_0" from="0" to="2">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">@card@</f>
+ <f name="certainty">0.993826</f>
+ <f name="ctag">CARD</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_1" from="3" to="8">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">stehen</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">VVFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_2" from="9" to="12">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">für</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">APPR</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_3" from="12" to="13">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">:</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">$.</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_4" from="16" to="23">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Pistole</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_5" from="24" to="26">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">@card@</f>
+ <f name="certainty">0.980489</f>
+ <f name="ctag">CARD</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_6" from="27" to="29">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">MG</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_7" from="30" to="32">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">@card@</f>
+ <f name="certainty">0.994623</f>
+ <f name="ctag">CARD</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_8" from="32" to="33">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">$,</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_9" from="34" to="37">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">eine</f>
+ <f name="certainty">0.998519</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="t_10" from="38" to="56">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">UNKNOWN</f>
+ <f name="certainty">1.000000</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
diff --git a/t/corpus/WPD17/060/header.xml b/t/corpus/WPD17/060/header.xml
new file mode 100644
index 0000000..f5ad557
--- /dev/null
+++ b/t/corpus/WPD17/060/header.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<idsHeader type="document" pattern="text" status="new" version="1.0" TEIform="teiHeader">
+ <fileDesc>
+ <titleStmt>
+ <dokumentSigle>WPD17/060</dokumentSigle>
+ <d.title>Wikipedia, Artikel mit Anfangszahl 0, Teil 60</d.title>
+ </titleStmt>
+ <publicationStmt>
+ <distributor/>
+ <pubAddress/>
+ <availability region="world">CC-BY-SA</availability>
+ <pubDate/>
+ </publicationStmt>
+ <sourceDesc>
+ <biblStruct Default="n">
+ <monogr>
+ <h.title type="main"/>
+ <imprint/>
+ </monogr>
+ </biblStruct>
+ </sourceDesc>
+ </fileDesc>
+ </idsHeader>
\ No newline at end of file