Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 1 | % content main => begin |
| 2 | |
| 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 |
| 6 | |
| 7 | <h2>KorAP-Tutorial</h2> |
| 8 | |
Nils Diewald | f736623 | 2014-07-25 15:57:08 +0000 | [diff] [blame] | 9 | <p> |
| 10 | <%= korap_tut_link_to 'Poliqarp+-Tutorial', '/tutorial/poliqarp-plus' %> |
| 11 | <%= korap_tut_link_to 'Foundry Overview', '/tutorial/foundries' %> |
| 12 | <%= korap_tut_link_to 'Regular Expressions', '/tutorial/regular-expressions' %> |
| 13 | <%= korap_tut_link_to 'Wildcards', '/tutorial/wildcards' %> |
| 14 | </p> |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 15 | |
| 16 | <!-- |
| 17 | <p>Links to Blog, FAQ, About, Contact ...</p> |
| 18 | <ul> |
| 19 | <li>Introduction to KorAP</li> |
| 20 | <li>How to use Poliqarp+ QL?</li> |
| 21 | <li>How to use Cosmas-II QL?</li> |
| 22 | <li>How to use CQL?</li> |
| 23 | <li>API</li> |
| 24 | <li>Search</li> |
| 25 | </ul> |
| 26 | --> |
| 27 | |
| 28 | <section id="tut-intro"> |
Nils Diewald | 729f718 | 2014-07-15 16:22:34 +0000 | [diff] [blame] | 29 | <h3>Frontend Features</h3> |
| 30 | <p>This frontend differs to the <%= link_to 'official frontend', 'http://korap.ids-mannheim.de/app/', target => '_blank' %> by providing a serialization view, an integrated tutorial, a comparison view for morphological annotations, and an autocompletion for closed annotations (type in <%= korap_tut_link_to 'foundry prefixes', '/tutorial/foundries' %> like <code>cnx/</code>).</p> |
| 31 | </section> |
| 32 | |
| 33 | |
| 34 | <section id="tut-examples"> |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 35 | |
| 36 | <h3>Example Queries</h3> |
| 37 | %# <p>This is a Tutorial to KorAP. It may be maintained separately (as a Wiki?) and has some nice features - like embedded example queries - just click on the queries below:</p> |
| 38 | |
Nils Diewald | 13bad6a | 2014-07-18 16:44:51 +0000 | [diff] [blame] | 39 | <p><strong>Poliqarp</strong>: Find all occurrences of the lemma "baum" as annotated by the <%= korap_tut_link_to 'default foundry', '/tutorial/foundries' %>.</p> |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 40 | %= korap_tut_query poliqarp => '[base=baum]' |
| 41 | |
| 42 | <p><strong>Cosmas-II</strong>: Find all occurrences of the words "der" and "Baum", in case they are in a maximum distance of 5 tokens. The order is not relevant.</p> |
| 43 | %= korap_tut_query cosmas2 => 'der /w5 Baum' |
| 44 | |
| 45 | <p><strong>Poliqarp+</strong>: Find all nominal phrases as annotated using Connexor, that contain an adverb as annotated by OpenNLP.</p> |
Nils Diewald | f49633a | 2014-11-08 22:33:25 +0000 | [diff] [blame^] | 46 | %= korap_tut_query poliqarp => 'contains(<cnx/c=np>,[opennlp/p=ADV])', cutoff => 1 |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 47 | |
Nils Diewald | 13bad6a | 2014-07-18 16:44:51 +0000 | [diff] [blame] | 48 | <p><strong>Poliqarp+</strong>: Find all sentences as annotated by the base foundry that start with a sequence of one token in present tense as annotated by Connexor and the lemma "der" annotated by the <%= korap_tut_link_to 'default foundry', '/tutorial/foundries' %>. Highlight both terms of the sequence.</p> |
Nils Diewald | f49633a | 2014-11-08 22:33:25 +0000 | [diff] [blame^] | 49 | %= korap_tut_query poliqarp => 'startswith(<s>, {1:[cnx/m=PRES]}{2:[base=der]})', cutoff => 1 |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 50 | |
Nils Diewald | 13bad6a | 2014-07-18 16:44:51 +0000 | [diff] [blame] | 51 | <p><strong>Annis</strong>: Find all occurrences of the sequence of two tokens annotated as adverbs by the <%= korap_tut_link_to 'default foundry', '/tutorial/foundries' %>.</p> |
| 52 | %= korap_tut_query annis => 'pos="ADV" & pos="ADV" & #1 . #2' |
| 53 | |
| 54 | |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 55 | </section> |
| 56 | |
| 57 | % end |