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