blob: 0b2c5663939deefd1bb74dbafddbe26ea22dca66 [file] [log] [blame]
Nils Diewalda31a5152015-04-17 21:05:23 +00001% layout 'main', title => 'KorAP: Annotations';
2
3<h2>Annotations</h2>
4
5<p>KorAP provides access to multiple levels of annotations originating from multiple resources, so called <em>foundries</em>.</p>
6
7<section id="base">
8 <h3>Base Foundry</h3>
9 <p>The base foundry is available for all corpora and acts as a common ground for document structure annotation. It supports two types of spans: <code>&lt;s&gt;</code> for sentences and <code>&lt;p&gt;</code> for paragraphs - this will likely change in the next index version. These spans lack prefix information!</p>
Nils Diewald61e6ff52015-05-07 17:26:50 +000010 %= doc_query poliqarp => '<s>', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000011</section>
12
13
14<section id="cnx">
15 <h3>Connexor (<code>cnx</code>)</h3>
16 <p>Connexor annotations provide the following layer for the <code>cnx</code> prefix:</p>
17 <dl>
18 <dt><abbr data-type="token" title="Lemma">l</abbr></dt>
19 <dd>All lemmas are written in lower case. Composita are split, e.g. the token &quot;Leitfähigkeit&quot; is matched by the lemmas &quot;leit&quot; and &quot;fähigkeit&quot; - not by the lemma &quot;leitfähigkeit&quot;</dd>
20 <dt><abbr data-type="token" title="Part-of-Speech">p</abbr></dt>
21 <dd>Part-of-speech information is written in capital letters and is based on STTS</dd>
22 <dt><abbr data-type="token" title="Syntactical information">syn</abbr></dt>
23 <dd>Includes token based information like <code>@PREMOD</code>, <code>@NH</code>, <code>@MAIN</code> ...</dd>
24 <dt><abbr data-type="token" title="Morphosyntactical information">m</abbr></dt>
25 <dd>Includes information about tense (<code>PRES</code> ...), mode (<code>IND</code>), number (<code>PL</code> ...) etc.</dd>
26 <dt><abbr data-type="span" title="Phrases">c</abbr></dt>
27 <dd>Only nominal phrases are available and all nominal phrases are written in lower case (<code>np</code>)</dd>
28 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000029 %= doc_query poliqarp => '[cnx/p=CC]', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000030</section>
31
32
33<section id="corenlp">
34 <h3>CoreNLP (<code>corenlp</code>)</h3>
35 <dl>
36 <dt><abbr data-type="token" title="Named Entity">ne_hgc_175m_600</abbr></dt>
37 <dd>Contains named entities like <code>I-PER</code>, <code>I-ORG</code> etc.</dd>
38 <dt><abbr data-type="token" title="Named Entity">ne_dewac_175_175m_600</abbr></dt>
39 <dd>See above</dd>
40 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000041 %= doc_query poliqarp => '[corenlp/ne_dewac_175m_600=I-ORG]', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000042</section>
43
44
45<section id="tt">
46 <h3>TreeTagger (<code>tt</code>)</h3>
47 <dl>
48 <dt><abbr data-type="token" title="Lemma">l</abbr></dt>
49 <dd>All non-noun lemmas are written in lower case, nouns are written upper case. Composita stay intact (e.g. <code>Normalbedingung</code>)</dd>
50 <dt><abbr data-type="token" title="Part-of-Speech">p</abbr></dt>
51 <dd>All part-of-speech information is written in capital letters and is based on STTS</dd>
52 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000053 %= doc_query poliqarp => '[tt/p=ADV]', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000054</section>
55
56
57<section>
58 <h3>Mate (<code>mate</code>)</h3>
59 <dl>
60 <dt><abbr data-type="token" title="Lemma">l</abbr></dt>
61 <dd>All lemmas are written in lower case. Composita stay intact (e.g. <code>buchstabenbezeichnung</code>)</dd>
62 <dt><abbr data-type="token" title="Part-of-Speech">p</abbr></dt>
63 <dd>All part-of-speech information is written in capital letters and is based on STTS</dd>
64 <dt><abbr data-type="token" title="Morphosyntactical information">m</abbr></dt>
65 <dd>Includes information about tense (<code>tense:pres</code> ...), mode (<code>mood:ind</code>), number (<code>number:pl</code> ...), gender (<code>gender:masc</code> ...) etc.</dd>
66 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000067 %= doc_query poliqarp => '[mate/m=gender:fem]', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000068</section>
69
70
71<section id="opennlp">
72 <h3>OpenNLP (<code>opennlp</code>)</h3>
73 <dl>
74 <dt><abbr data-type="token" title="Part-of-Speech">p</abbr></dt>
75 <dd>All part-of-speech information is written in capital letters and is based on STTS</dd>
76 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000077 %= doc_query poliqarp => '[opennlp/p=PDAT]', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000078</section>
79
80
81<section id="xip">
82 <h3>Xerox Incremental Parser (<code>xip</code>)</h3>
83 <dl>
84 <dt><abbr data-type="token" title="Lemma">l</abbr></dt>
85 <dd>All non-noun lemmas are written in lower case, nouns are written upper case. Composita are split, e.g. the token <code>Leitfähigkeit</code> is matched by the lemmas <code>leiten</code> and <code>Fähigkeit</code> - and by a merged and pretty useless <code>leitenfähigkeit</code> (This is going to change)</dd>
86 <dt><abbr data-type="token" title="Part-of-Speech">p</abbr></dt>
87 <dd>All part-of-spech information is written in capital letters and is based on STTS</dd>
88 <dt><abbr data-type="span" title="Phrases">c</abbr></dt>
89 <dd>Some phrases to create sentences, all upper case (<code>NP</code>, <code>NPA</code>, <code>NOUN</code>, <code>VERB</code>, <code>PREP</code>, <code>AP</code> ...)</dd>
90 </dl>
Nils Diewald61e6ff52015-05-07 17:26:50 +000091 %= doc_query poliqarp => '[xip/p=ADJ]', cutoff => 1
92 %= doc_query poliqarp => '<xip/c=VERB>', cutoff => 1
Nils Diewalda31a5152015-04-17 21:05:23 +000093</section>
94
95<section id="default-foundries">
96 <h3>Default Foundries</h3>
97 <p>For queries on specific layers without given foundries, KorAP provides default foundries, that can be overwritten by user configurations. The default foundries apply to the following layers:</p>
98
99 <ul>
100 <li><strong>orth</strong>: <code>opennlp</code></li>
101 <li><strong>lemma</strong>: <code>tt</code></li>
102 <li><strong>pos</strong>: <code>tt</code></li>
103 </ul>
104
105 <blockquote>
106 <p>In the Lucene backend, the <code>orth</code> layer can only be bound to a specific foundry, as only one tokenization is supported.</p>
107 </blockquote>
108</section>