blob: 760f2ba2a85762a835bdf72d3ce69cf6e04cacb1 [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"],
Nils Diewald023c6712015-05-21 20:12:30 +000060 ["VAIMP","VAIMP ", "Auxiliary Finite Imperative Verb"],
Akroncff9bac2016-01-25 21:39:38 +010061 ["VAINF","VAINF ", "Auxiliary Infinite Verb"],
Nils Diewald023c6712015-05-21 20:12:30 +000062 ["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
Akroncff9bac2016-01-25 21:39:38 +010074
Akron113cc1a2016-01-22 21:17:57 +010075// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/negra-corpus.html
76// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/knoten.html
77var negraNodes = [
78 ["AA", "AA", "superlative phrase with 'am'"],
79 ["AP","AP", "adjektive phrase"],
80 ["AVP","AVP", "adverbial phrase"],
81 ["CAP","CAP", "coordinated adjektive phrase"],
82 ["CAVP","CAVP", "coordinated adverbial phrase"],
83 ["CAC","CAC", "coordinated adposition"],
84 ["CCP","CCP", "coordinated complementiser"],
85 ["CH","CH", "chunk"],
86 ["CNP","CNP", "coordinated noun phrase"],
87 ["CO","CO", "coordination"],
88 ["CPP","CPP", "coordinated adpositional phrase"],
89 ["CS","CS", "coordinated sentence"],
90 ["CVP","CVP", "coordinated verb phrase (non-finite)"],
91 ["CVZ","CVZ", "coordinated zu-marked infinitive"],
92 ["DL","DL", "discourse level constituent"],
93 ["ISU","ISU", "idiosyncratis unit"],
94 ["MPN","MPN", "multi-word proper noun"],
95 ["MTA","MTA", "multi-token adjective"],
96 ["NM","NM", "multi-token number"],
97 ["NP","NP", "noun phrase"],
98 ["PP","PP", "adpositional phrase"],
99 ["QL","QL", "quasi-languag"],
100 ["ROOT","ROOT", "root node"],
101 ["S","S", "sentence"],
102 ["VP","VP", "verb phrase (non-finite)"],
103 ["VZ","VZ", "zu-marked infinitive"]
104];
105
106// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/kanten.html
107var negraEdges = [
108 ["AC","AC","adpositional case marker"],
109 ["ADC","ADC","adjective component"],
110 ["AMS","AMS","measure argument of adj"],
111 ["APP","APP","apposition"],
112 ["AVC","AVC","adverbial phrase component"],
113 ["CC","CC","comparative complement"],
114 ["CD","CD","coordinating conjunction"],
115 ["CJ","CJ","conjunct"],
116 ["CM","CM","comparative concjunction"],
117 ["CP","CP","complementizer"],
118 ["DA","DA","dative"],
119 ["DH","DH","discourse-level head"],
120 ["DM","DM","discourse marker"],
121 ["GL","GL","prenominal genitive"],
122 ["GR","GR","postnominal genitive"],
123 ["HD","HD","head"],
124 ["JU","JU","junctor"],
125 ["MC","MC","comitative"],
126 ["MI","MI","instrumental"],
127 ["ML","ML","locative"],
128 ["MNR","MNR","postnominal modifier"],
129 ["MO","MO","modifier"],
130 ["MR","MR","rhetorical modifier"],
131 ["MW","MW","way (directional modifier)"],
132 ["NG","NG","negation"],
133 ["NK","NK","noun kernel modifier"],
134 ["NMC","NMC","numerical component"],
135 ["OA","OA","accusative object"],
136 ["OA2","OA2","second accusative object"],
137 ["OC","OC","clausal object"],
138 ["OG","OG","genitive object"],
139 ["PD","PD","predicate"],
140 ["PG","PG","pseudo-genitive"],
141 ["PH","PH","placeholder"],
142 ["PM","PM","morphological particle"],
143 ["PNC","PNC","proper noun component"],
144 ["RC","RC","relative clause"],
145 ["RE","RE","repeated element"],
146 ["RS","RS","reported speech"],
147 ["SB","SB","subject"],
148 ["SBP","SBP","passivised subject (PP)"],
149 ["SP","SP","subject or predicate"],
150 ["SVP","SVP","separable verb prefix"],
151 ["UC","UC","(idiosyncratic) unit component"],
152 ["VO","VO","vocative"]
153];
154
Nils Diewald023c6712015-05-21 20:12:30 +0000155var mateSttsArray = sttsArray.slice(0);
156mateSttsArray.push(
157 ["<root-POS>","<root-POS>","Root Part of Speech"]
158);
159
Akroncff9bac2016-01-25 21:39:38 +0100160var sgbSttsArray = sttsArray.slice(0);
161sgbSttsArray.splice(17,0, ["NNE", "NNE", "Normal Nomina with Named Entity"]);
162sgbSttsArray.push(
163 ["_KOMMA", "_KOMMA", "Comma"],
164 ["_SONST", "_SONST", "Intrasentential Punctuation Mark"],
165 ["_ENDE", "_ENDE", "Punctuation Mark at the end of the Sentence"]
166);
167
Akron113cc1a2016-01-22 21:17:57 +0100168define(function () {
169 var obj = {
170 "-" : [
Akroncff9bac2016-01-25 21:39:38 +0100171 ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
172 ["CoreNLP", "corenlp/", "Constituency, Named Entities, Part-of-Speech"],
173 ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
174 ["OpenNLP", "opennlp/", "Part-of-Speech"],
175 ["Schreibgebrauch", "sgbr/", "Lemma, Lemma Variants, Part-of-Speech"],
176 ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
177 ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
Akron113cc1a2016-01-22 21:17:57 +0100178 ],
179 "corenlp/" : [
180 ["Constituency", "c="],
181 ["Named Entity", "ne=" , "Combined"],
182 ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
183 ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"],
184 ["Part-of-Speech", "p="]
185 ],
186 "corenlp/ne=" : namedEntities,
187 "corenlp/ne_dewac_175m_600=" : namedEntities,
188 "corenlp/ne_hgc_175m_600=" : namedEntities,
189 "corenlp/p=" : sttsArray,
190 "corenlp/c=" : negraNodes,
191 "cnx/" : [
192 ["Constituency", "c="],
193 ["Lemma", "l="],
194 ["Morphology", "m="],
195 ["Part-of-Speech", "p="],
196 ["Syntax", "syn="]
197 ],
198 "cnx/c=" : [
199 ["np", "np ", "Nominal Phrase"]
200 ],
201 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
202 "cnx/m=" : [
203 ["Abbr","Abbr ", "Nouns: Abbreviation"],
204 ["CMP","CMP ", "Adjective: Comparative"],
205 ["IMP", "IMP ", "Mood: Imperative"],
206 ["IND", "IND ", "Mood: Indicative"],
207 ["INF", "INF ", "Infinitive"],
208 ["ORD","ORD ", "Numeral: Ordinal"],
209 ["PAST", "PAST ", "Tense: past"],
210 ["PCP", "PCP ", "Participle"],
211 ["PERF", "PERF ", "Perfective Participle"],
212 ["PL","PL ", "Nouns: Plural"],
213 ["PRES", "PRES ", "Tense: present"],
214 ["PROG", "PROG ", "Progressive Participle"],
215 ["Prop","Prop ", "Nouns: Proper Noun"],
216 ["SUB", "SUB ", "Mood: Subjunctive"],
217 ["SUP","SUP ", "Adjective: Superlative"]
218 ],
219 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
220 "cnx/p=" : [
221 ["A", "A ", "Adjective"],
222 ["ADV", "ADV ", "Adverb"],
223 ["CC", "CC ", "Coordination Marker"],
224 ["CS", "CS ", "Clause Marker"],
225 ["DET", "DET ", "Determiner"],
226 ["INTERJ", "INTERJ ", "Interjection"],
227 ["N", "N ", "Noun"],
228 ["NUM", "NUM ", "Numeral"],
229 ["PREP", "PREP ", "Preposition"],
230 ["PRON", "PRON ", "Pro-Nominal"],
231 ["V", "V ", "Verb"]
232 ],
233 // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
234 "cnx/syn=" : [
235 ["@ADVL", "@ADVL ", "Adverbial Head"],
236 ["@AUX", "@AUX ", "Auxiliary Verb"],
237 ["@CC", "@CC ", "Coordination"]
238 ["@MAIN", "@MAIN ", "Main Verb"],
239 ["@NH", "@NH ", "Nominal Head"],
240 ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
241 ["@PREMARK", "@PREMARK ", "Preposed Marker"],
242 ["@PREMOD", "@POSTMOD ", "Premodifier"]
243 ],
244 "opennlp/" : [
245 ["Part-of-Speech", "p="]
246 ],
247 "opennlp/p=" : sttsArray,
Akroncff9bac2016-01-25 21:39:38 +0100248 "sgbr/" : [
249 ["Lemma", "l="],
250 ["Lemma Variants", "lv="],
251 ["Part-of-Speech", "p="]
252 ],
253 "sgbr/p=" : sgbSttsArray,
Akron113cc1a2016-01-22 21:17:57 +0100254 "xip/" : [
255 ["Constituency", "c="],
256 // Inactive: ["Dependency", "d="],
257 ["Lemma", "l="],
258 ["Part-of-Speech", "p="],
259 ],
260 // "xip/c=" : [],
261 // Inactive: "xip/d=" : [],
262 // "xip/p=" : [],
263 "tt/" : [
264 ["Lemma", "l="],
265 ["Part-of-Speech", "p="]
266 ],
267 "tt/p=" : sttsArray,
268 "mate/" : [
269 // Inactive: "d" : ["d=", "Dependency"],
270 ["Lemma", "l="],
271 ["Morphology", "m="],
272 ["Part-of-Speech", "p="]
273 ],
274 // Inactive: mate/d=
275 "mate/p=" : mateSttsArray,
276 "mate/m=" : [
277 ["Case", "case:"],
278 ["Degree", "degree:"],
279 ["Gender", "gender:"],
280 ["Mood", "mood:"],
281 ["Number", "number:"],
282 ["Person", "person:"],
283 ["Tense","tense:"],
284 ["No type", "<no-type> "]
285 ],
286 "mate/m=case:" : [
287 ["acc", "acc ", "Accusative"],
288 ["dat","dat ", "Dative"],
289 ["gen", "gen ","Genitive"],
290 ["nom","nom ", "Nominative"],
291 ["*","* ", "Undefined"]
292 ],
293 "mate/m=degree:" : [
294 ["comp","comp ", "Comparative"],
295 ["pos","pos ", "Positive"],
296 ["sup","sup ", "Superative"]
297 ],
298 "mate/m=gender:" : [
299 ["fem", "fem ", "Feminium"],
300 ["masc", "masc ", "Masculinum"],
301 ["neut","neut ", "Neuter"],
302 ["*","* ","Undefined"]
303 ],
304 "mate/m=mood:" : [
305 ["imp","imp ", "Imperative"],
306 ["ind","ind ", "Indicative"],
307 ["subj","subj ", "Subjunctive"]
308 ],
309 "mate/m=number:" : [
310 ["pl","pl ","Plural"],
311 ["sg","sg ","Singular"],
312 ["*","* ","Undefined"]
313 ],
314 "mate/m=person:" : [
315 ["1","1 ", "First Person"],
316 ["2","2 ", "Second Person"],
317 ["3","3 ", "Third Person"]
318 ],
319 "mate/m=tense:" : [
320 ["past","past ", "Past"],
321 ["pres","pres ", "Present"]
322 ]
323 };
Nils Diewald023c6712015-05-21 20:12:30 +0000324
Akron113cc1a2016-01-22 21:17:57 +0100325 for (var i in negraNodes) {
326 obj["corenlp/c=" + negraNodes[i][0] + '-'] = negraEdges;
327 };
328
329 return obj;
Nils Diewald023c6712015-05-21 20:12:30 +0000330});