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