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