| % content main => begin |
| |
| <h2>KorAP-Tutorial: Foundries and Layers</h2> |
| |
| <p><%= korap_tut_link_to 'Back to Index', '/tutorial' %></p> |
| |
| <p>KorAP provides access to multiple levels of annotations originating from multiple resources, so called <i>foundries</i>.</p> |
| |
| <section name="cheatsheet"> |
| <ul> |
| <li><strong>base</strong> |
| <ul> |
| <li>Supports two types of spans: <strong><s></strong> for sentences and <strong><p></strong> for paragraphs - this will likely change in the next index version. These spans lack prefix information!</li> |
| </ul> |
| </li> |
| <li><strong>cnx</strong> |
| <ul> |
| <li><strong>l</strong> (Token:Lemma): All lemmas are written in lower case. Composita are split, e.g. the token "Leitfähigkeit" is matched by the lemmas "leit" and "fähigkeit" - not by the lemma "leitfähigkeit"</li> |
| <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| <li><strong>syn</strong> (Token:Syntactical information): Includes token based information like @PREMOD, @NH, @MAIN ...</li> |
| <li><strong>m</strong> (Token:Morphosyntactical information): Includes information about tense ("PRES" ...), mode ("IND&qut;), number ("PL" ...) etc.</li> |
| <li><strong>c</strong> (Span:Phrases): Only nominal phrases are available and all nominal phrases are written in lower case ("np")</li> |
| </ul> |
| </li> |
| <li><strong>corenlp</strong> |
| <ul> |
| <li><strong>ne_hgc_175m_600</strong> (Token:Named Entity): Contains named entities like "I-PER", "I-ORG" etc. </li> |
| <li><strong>ne_dewac_175_175m_600</strong> (Token:Named Entity): see above</li> |
| </ul> |
| </li> |
| <li><strong>tt</strong> |
| <ul> |
| <li><strong>l</strong> (Token:Lemma): All non-noun lemmas are written in lower case, nouns are written upper case. Composita stay intact (e.g. "Normalbedingung")</li> |
| <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| </ul> |
| </li> |
| <li><strong>mate</strong> |
| <ul> |
| <li><strong>l</strong> (Token:Lemma): All lemmas are written in lower case. Composita stay intact (e.g. "buchstabenbezeichnung")</li> |
| <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| <li><strong>m</strong> (Token:Morphosyntactical information): Includes information about tense ("tense:pres" ...), mode ("mood:ind&qut;), number ("number:pl" ...), gender ("gender:masc" etc.</li> |
| </ul> |
| </li> |
| <li><strong>opennlp</strong> |
| <ul> |
| <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| </ul> |
| </li> |
| <li><strong>xip</strong> |
| <ul> |
| <li><strong>l</strong> (Token:Lemma): All non-noun lemmas are written in lower case, nouns are written upper case. Composita are split, e.g. the token "Leitfähigkeit" is matched by the lemmas "leiten" and "Fähigkeit" - and by a merged and pretty useless "leitenfähigkeit" (This is going to change)</li> |
| <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| <li><strong>c</strong> (Span:Phrases): Some phrases to create sentences, all upper case ("NP", "NPA", "NOUN", "VERB", "PREP", "AP" ...)</li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| |
| <h3>Default Foundries</h3> |
| |
| <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> |
| |
| <ul> |
| <li><strong>orth</strong>: opennlp</li> |
| <li><strong>lemma</strong>: tt</li> |
| <li><strong>pos</strong>: tt</li> |
| </ul> |
| |
| <blockquote> |
| <p>In the Lucene backend, the <strong>orth</strong> layer can only be bound to a specific foundry, as only one tokenization is supported.</p> |
| </blockquote> |
| |
| % end |