Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 1 | % content main => begin |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 2 | |
Nils Diewald | bd56adc | 2014-06-22 18:44:53 +0000 | [diff] [blame] | 3 | %# Store the id of an active section in the session, so the system is able to directly scroll to the relevant section |
| 4 | %# This should be stored when clicking on a specific query |
| 5 | %# but the remembered section contains the id - not the query |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 6 | |
Nils Diewald | 1eba657 | 2014-06-17 19:49:53 +0000 | [diff] [blame] | 7 | <h2>KorAP-Tutorial</h2> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 8 | |
Nils Diewald | 0d2dcc8 | 2014-06-18 17:10:49 +0000 | [diff] [blame] | 9 | <!-- |
Nils Diewald | bd56adc | 2014-06-22 18:44:53 +0000 | [diff] [blame] | 10 | <p>Links to Blog, FAQ, About, Contact ...</p> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 11 | <ul> |
| 12 | <li>Introduction to KorAP</li> |
| 13 | <li>How to use Poliqarp+ QL?</li> |
| 14 | <li>How to use Cosmas-II QL?</li> |
| 15 | <li>How to use CQL?</li> |
| 16 | </ul> |
Nils Diewald | 0d2dcc8 | 2014-06-18 17:10:49 +0000 | [diff] [blame] | 17 | --> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 18 | |
Nils Diewald | bd56adc | 2014-06-22 18:44:53 +0000 | [diff] [blame] | 19 | <section id="intro"> |
| 20 | <h3>Introduction</h3> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 21 | <p>This is a Tutorial to KorAP. It may be maintained separately (as a Wiki?) and |
Nils Diewald | 0d2dcc8 | 2014-06-18 17:10:49 +0000 | [diff] [blame] | 22 | has some nice features - like embedded example queries - just click on the queries below:</p> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 23 | |
| 24 | %= korap_tut_query poliqarp => '[base=baum]' |
| 25 | |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 26 | %= korap_tut_query cosmas2 => 'der /w5 Baum' |
| 27 | |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 28 | %= korap_tut_query poliqarp => 'contains(<cnx/c=np>,[opennlp/p=KOUS])' |
| 29 | |
| 30 | %= korap_tut_query poliqarp => 'startswith(<s>, {1:[cnx/m=PRES]}{2:[base=der]})' |
| 31 | |
Nils Diewald | 0d2dcc8 | 2014-06-18 17:10:49 +0000 | [diff] [blame] | 32 | <p>And here is a short cheat sheet for foundries and layers</p> |
Nils Diewald | bd56adc | 2014-06-22 18:44:53 +0000 | [diff] [blame] | 33 | </section> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 34 | |
Nils Diewald | bd56adc | 2014-06-22 18:44:53 +0000 | [diff] [blame] | 35 | <section id="cheatsheet"> |
| 36 | <h3>Cheatsheet</h3> |
| 37 | <ul> |
| 38 | <li><strong>base</strong> |
| 39 | <ul> |
| 40 | <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> |
| 41 | </ul> |
| 42 | </li> |
| 43 | <li><strong>cnx</strong> |
| 44 | <ul> |
| 45 | <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> |
| 46 | <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| 47 | <li><strong>syn</strong> (Token:Syntactical information): Includes token based information like @PREMOD, @NH, @MAIN ...</li> |
| 48 | <li><strong>m</strong> (Token:Morphosyntactical information): Includes information about tense ("PRES" ...), mode ("IND&qut;), number ("PL" ...) etc.</li> |
| 49 | <li><strong>c</strong> (Span:Phrases): Only nominal phrases are available and all nominal phrases are written in lower case ("np")</li> |
| 50 | </ul> |
| 51 | </li> |
| 52 | <li><strong>corenlp</strong> |
| 53 | <ul> |
| 54 | <li><strong>ne_hgc_175m_600</strong> (Token:Named Entity): Contains named entities like "I-PER", "I-ORG" etc. </li> |
| 55 | <li><strong>ne_dewac_175_175m_600</strong> (Token:Named Entity): see above</li> |
| 56 | </ul> |
| 57 | </li> |
| 58 | <li><strong>tt</strong> |
| 59 | <ul> |
| 60 | <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> |
| 61 | <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| 62 | </ul> |
| 63 | </li> |
| 64 | <li><strong>mate</strong> |
| 65 | <ul> |
| 66 | <li><strong>l</strong> (Token:Lemma): All lemmas are written in lower case. Composita stay intact (e.g. "buchstabenbezeichnung")</li> |
| 67 | <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| 68 | <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> |
| 69 | </ul> |
| 70 | </li> |
| 71 | <li><strong>opennlp</strong> |
| 72 | <ul> |
| 73 | <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| 74 | </ul> |
| 75 | </li> |
| 76 | <li><strong>xip</strong> |
| 77 | <ul> |
| 78 | <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> |
| 79 | <li><strong>p</strong> (Token:Part of Speech): All pos infos are written in capital letters and are based on STTS</li> |
| 80 | <li><strong>c</strong> (Span:Phrases): Some phrases to create sentences, all upper case ("NP", "NPA", "NOUN", "VERB", "PREP", "AP" ...)</li> |
| 81 | </ul> |
| 82 | </li> |
| 83 | </ul> |
| 84 | </section> |
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 85 | |
Nils Diewald | 4af3f0b | 2014-06-25 01:43:17 +0000 | [diff] [blame] | 86 | % end |