blob: 154bcaf7caa739214cd0589479d265c0f29d98f2 [file] [log] [blame]
Nils Diewald5c5a7472015-04-02 22:13:38 +00001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Hint demo</title>
5 <meta charset="utf-8" />
6 <script src="../src/menu.js"></script>
7 <script src="../src/hint.js"></script>
8 <link type="text/css" rel="stylesheet" href="../../css/build/kalamar.css" />
9 <script>
10// http://www.nlpado.de/~sebastian/software/ner_german.shtml
11// http://www.cnts.ua.ac.be/conll2003/ner/
12var namedEntities = [
13 ["I-LOC", "I-LOC ", "Location"],
14 ["I-MISC", "I-MISC ", "Miscellaneous"],
15 ["I-ORG", "I-ORG ", "Organization"],
16 ["I-PER", "I-PER ", "Person"]
17];
18
19// http://www.ids-mannheim.de/cosmas2/projekt/referenz/stts/morph.html
20// http://nachhalt.sfb632.uni-potsdam.de/owl-docu/stts.html
21var sttsArray = [
22 // "$.", "$(", "$,"
23 ["ADJA","ADJA ", "Attributive Adjective"],
24 ["ADJD","ADJD ", "Predicative Adjective"],
25 ["ADV","ADV ", "Adverb"],
26 ["APPO","APPO ", "Postposition"],
27 ["APPR","APPR ", "Preposition"],
28 ["APPRART","APPRART ", "Preposition with Determiner"],
29 ["APZR","APZR ","Right Circumposition"],
30 ["ART","ART ", "Determiner"],
31 ["CARD","CARD ", "Cardinal Number"],
32 ["FM","FM ", "Foreign Material"],
33 ["ITJ","ITJ ", "Interjection"],
34 ["KOKOM","KOKOM ", "Comparison Particle"],
35 ["KON","KON ", "Coordinating Conjuncion"],
36 ["KOUI","KOUI ", "Subordinating Conjunction with 'zu'"],
37 ["KOUS","KOUS ", "Subordinating Conjunction with Sentence"],
38 ["NE","NE ", "Named Entity"],
39 ["NN","NN ", "Normal Nomina"],
40 ["PAV", "PAV ", "Pronominal Adverb"],
41 ["PDAT","PDAT ","Attributive Demonstrative Pronoun"],
42 ["PDS","PDS ", "Substitutive Demonstrative Pronoun"],
43 ["PIAT","PIAT ", "Attributive Indefinite Pronoun without Determiner"],
44 ["PIDAT","PIDAT ", "Attributive Indefinite Pronoun with Determiner"],
45 ["PIS","PIS ", "Substitutive Indefinite Pronoun"],
46 ["PPER","PPER ", "Personal Pronoun"],
47 ["PPOSAT","PPOSAT ", "Attributive Possessive Pronoun"],
48 ["PPOSS","PPOSS ", "Substitutive Possessive Pronoun"],
49 ["PRELAT","PRELAT ", "Attributive Relative Pronoun"],
50 ["PRELS","PRELS ", "Substitutive Relative Pronoun"],
51 ["PRF","PRF ", "Reflexive Pronoun"],
52 ["PROAV","PROAV ", "Pronominal Adverb"],
53 ["PTKA","PTKA ","Particle with Adjective"],
54 ["PTKANT","PTKANT ", "Answering Particle"],
55 ["PTKNEG","PTKNEG ", "Negation Particle"],
56 ["PTKVZ","PTKVZ ", "Separated Verbal Particle"],
57 ["PTKZU","PTKZU ", "'zu' Particle"],
58 ["PWAT","PWAT ", "Attributive Interrogative Pronoun"],
59 ["PWAV","PWAV ", "Adverbial Interrogative Pronoun"],
60 ["PWS","PWS ", "Substitutive Interrogative Pronoun"],
61 ["TRUNC","TRUNC ","Truncated"],
62 ["VAFIN","VAFIN ", "Auxiliary Finite Verb"],
63 ["VAINF","VAINF ", "Auxiliary Infinite Verb"],
64 ["VAIMP","VAIMP ", "Auxiliary Finite Imperative Verb"],
65 ["VAPP","VAPP ", "Auxiliary Perfect Participle"],
66 ["VMFIN","VMFIN ", "Modal Finite Verb"],
67 ["VMINF","VMINF ", "Modal Infinite Verb"],
68 ["VMPP","VMPP ", "Modal Perfect Participle"],
69 ["VVFIN","VVFIN ","Finite Verb"],
70 ["VVIMP","VVIMP ", "Finite Imperative Verb"],
71 ["VVINF","VVINF ", "Infinite Verb"],
72 ["VVIZU","VVIZU ", "Infinite Verb with 'zu'"],
73 ["VVPP","VVPP ", "Perfect Participle"],
74 ["XY", "XY ", "Non-Word"]
75];
76
77var mateSttsArray = sttsArray.slice(0);
78mateSttsArray.push(
79 ["<root-POS>","<root-POS>","Root Part of Speech"]
80);
81
82
83var hintArray = {
84 "-" : [
85 ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
86 ["CoreNLP", "corenlp/", "Named Entities"],
87 ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
88 ["OpenNLP", "opennlp/", "Part-of-Speech"],
89 ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
90 ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
91 ],
92 "corenlp/" : [
93 ["Named Entity", "ne=" , "Combined"],
94 ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
95 ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"]
96 ],
97 "corenlp/ne=" : namedEntities,
98 "corenlp/ne_dewac_175m_600=" : namedEntities,
99 "corenlp/ne_hgc_175m_600=" : namedEntities,
100 "cnx/" : [
101 ["Constituency", "c="],
102 ["Lemma", "l="],
103 ["Morphology", "m="],
104 ["Part-of-Speech", "p="],
105 ["Syntax", "syn="]
106 ],
107 "cnx/c=" : [
108 ["np", "np ", "Nominal Phrase"]
109 ],
110 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
111 "cnx/m=" : [
112 ["Abbr","Abbr ", "Nouns: Abbreviation"],
113 ["CMP","CMP ", "Adjective: Comparative"],
114 ["IMP", "IMP ", "Mood: Imperative"],
115 ["IND", "IND ", "Mood: Indicative"],
116 ["INF", "INF ", "Infinitive"],
117 ["ORD","ORD ", "Numeral: Ordinal"],
118 ["PAST", "PAST ", "Tense: past"],
119 ["PCP", "PCP ", "Participle"],
120 ["PERF", "PERF ", "Perfective Participle"],
121 ["PL","PL ", "Nouns: Plural"],
122 ["PRES", "PRES ", "Tense: present"],
123 ["PROG", "PROG ", "Progressive Participle"],
124 ["Prop","Prop ", "Nouns: Proper Noun"],
125 ["SUB", "SUB ", "Mood: Subjunctive"],
126 ["SUP","SUP ", "Adjective: Superlative"]
127 ],
128 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
129 "cnx/p=" : [
130 ["A", "A ", "Adjective"],
131 ["ADV", "ADV ", "Adverb"],
132 ["CC", "CC ", "Coordination Marker"],
133 ["CS", "CS ", "Clause Marker"],
134 ["DET", "DET ", "Determiner"],
135 ["INTERJ", "INTERJ ", "Interjection"],
136 ["N", "N ", "Noun"],
137 ["NUM", "NUM ", "Numeral"],
138 ["PREP", "PREP ", "Preposition"],
139 ["PRON", "PRON ", "Pro-Nominal"],
140 ["V", "V ", "Verb"]
141 ],
142 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
143 "cnx/syn=" : [
144 ["@ADVL", "@ADVL ", "Adverbial Head"],
145 ["@AUX", "@AUX ", "Auxiliary Verb"],
146 ["@CC", "@CC ", "Coordination"]
147 ["@MAIN", "@MAIN ", "Main Verb"],
148 ["@NH", "@NH ", "Nominal Head"],
149 ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
150 ["@PREMARK", "@PREMARK ", "Preposed Marker"],
151 ["@PREMOD", "@POSTMOD ", "Premodifier"]
152 ],
153 "opennlp/" : [
154 ["Part-of-Speech", "p="]
155 ],
156 "opennlp/p=" : sttsArray,
157 "xip/" : [
158 ["Constituency", "c="],
159 // Inactive: ["Dependency", "d="],
160 ["Lemma", "l="],
161 ["Part-of-Speech", "p="],
162 ],
163 // "xip/c=" : [],
164 // Inactive: "xip/d=" : [],
165 // "xip/p=" : [],
166 "tt/" : [
167 ["Lemma", "l="],
168 ["Part-of-Speech", "p="]
169 ],
170 "tt/p=" : sttsArray,
171 "mate/" : [
172 // Inactive: "d" : ["d=", "Dependency"],
173 ["Lemma", "l="],
174 ["Morphology", "m="],
175 ["Part-of-Speech", "p="]
176 ],
177 // Inactive: mate/d=
178 "mate/p=" : mateSttsArray,
179 "mate/m=" : [
180 ["Case", "case:"],
181 ["Degree", "degree:"],
182 ["Gender", "gender:"],
183 ["Mood", "mood:"],
184 ["Number", "number:"],
185 ["Person", "person:"],
186 ["Tense","tense:"],
187 ["No type", "<no-type> "]
188 ],
189 "mate/m=case:" : [
190 ["acc", "acc ", "Accusative"],
191 ["dat","dat ", "Dative"],
192 ["gen", "gen ","Genitive"],
193 ["nom","nom ", "Nominative"],
194 ["*","* ", "Undefined"]
195 ],
196 "mate/m=degree:" : [
197 ["comp","comp ", "Comparative"],
198 ["pos","pos ", "Positive"],
199 ["sup","sup ", "Superative"]
200 ],
201 "mate/m=gender:" : [
202 ["fem", "fem ", "Feminium"],
203 ["masc", "masc ", "Masculinum"],
204 ["neut","neut ", "Neuter"],
205 ["*","* ","Undefined"]
206 ],
207 "mate/m=mood:" : [
208 ["imp","imp ", "Imperative"],
209 ["ind","ind ", "Indicative"],
210 ["subj","subj ", "Subjunctive"]
211 ],
212 "mate/m=number:" : [
213 ["pl","pl ","Plural"],
214 ["sg","sg ","Singular"],
215 ["*","* ","Undefined"]
216 ],
217 "mate/m=person:" : [
218 ["1","1 ", "First Person"],
219 ["2","2 ", "Second Person"],
220 ["3","3 ", "Third Person"]
221 ],
222 "mate/m=tense:" : [
223 ["past","past ", "Past"],
224 ["pres","pres ", "Present"]
225 ]
226};
227
228 </script>
229 </head>
230 <body>
231 <header>
232 <form autocomplete="off" action="/kalamar">
233 <div id="searchbar">
234 <input type="search"
235 placeholder="Find ..."
236 name="q"
237 id="q-field"
238 autofocus="autofocus" />
239 <button type="submit"><span>Go</span></button>
240 </div>
241 </form>
242 </header>
243 <script>
244KorAP.hintArray = hintArray;
245var input = KorAP.Hint.create();
246 </script>
247 </body>
248</html>