Introduced corenlp constituency and pos
diff --git a/dev/demo/hintdemo.js b/dev/demo/hintdemo.js
index 6c2303b..fabf0c2 100644
--- a/dev/demo/hintdemo.js
+++ b/dev/demo/hintdemo.js
@@ -1,221 +1,3 @@
-// http://www.nlpado.de/~sebastian/software/ner_german.shtml
-// http://www.cnts.ua.ac.be/conll2003/ner/
-var namedEntities = [
- ["I-LOC", "I-LOC ", "Location"],
- ["I-MISC", "I-MISC ", "Miscellaneous"],
- ["I-ORG", "I-ORG ", "Organization"],
- ["I-PER", "I-PER ", "Person"]
-];
-
-// http://www.ids-mannheim.de/cosmas2/projekt/referenz/stts/morph.html
-// http://nachhalt.sfb632.uni-potsdam.de/owl-docu/stts.html
-var sttsArray = [
- // "$.", "$(", "$,"
- ["ADJA","ADJA ", "Attributive Adjective"],
- ["ADJD","ADJD ", "Predicative Adjective"],
- ["ADV","ADV ", "Adverb"],
- ["APPO","APPO ", "Postposition"],
- ["APPR","APPR ", "Preposition"],
- ["APPRART","APPRART ", "Preposition with Determiner"],
- ["APZR","APZR ","Right Circumposition"],
- ["ART","ART ", "Determiner"],
- ["CARD","CARD ", "Cardinal Number"],
- ["FM","FM ", "Foreign Material"],
- ["ITJ","ITJ ", "Interjection"],
- ["KOKOM","KOKOM ", "Comparison Particle"],
- ["KON","KON ", "Coordinating Conjuncion"],
- ["KOUI","KOUI ", "Subordinating Conjunction with 'zu'"],
- ["KOUS","KOUS ", "Subordinating Conjunction with Sentence"],
- ["NE","NE ", "Named Entity"],
- ["NN","NN ", "Normal Nomina"],
- ["PAV", "PAV ", "Pronominal Adverb"],
- ["PDAT","PDAT ","Attributive Demonstrative Pronoun"],
- ["PDS","PDS ", "Substitutive Demonstrative Pronoun"],
- ["PIAT","PIAT ", "Attributive Indefinite Pronoun without Determiner"],
- ["PIDAT","PIDAT ", "Attributive Indefinite Pronoun with Determiner"],
- ["PIS","PIS ", "Substitutive Indefinite Pronoun"],
- ["PPER","PPER ", "Personal Pronoun"],
- ["PPOSAT","PPOSAT ", "Attributive Possessive Pronoun"],
- ["PPOSS","PPOSS ", "Substitutive Possessive Pronoun"],
- ["PRELAT","PRELAT ", "Attributive Relative Pronoun"],
- ["PRELS","PRELS ", "Substitutive Relative Pronoun"],
- ["PRF","PRF ", "Reflexive Pronoun"],
- ["PROAV","PROAV ", "Pronominal Adverb"],
- ["PTKA","PTKA ","Particle with Adjective"],
- ["PTKANT","PTKANT ", "Answering Particle"],
- ["PTKNEG","PTKNEG ", "Negation Particle"],
- ["PTKVZ","PTKVZ ", "Separated Verbal Particle"],
- ["PTKZU","PTKZU ", "'zu' Particle"],
- ["PWAT","PWAT ", "Attributive Interrogative Pronoun"],
- ["PWAV","PWAV ", "Adverbial Interrogative Pronoun"],
- ["PWS","PWS ", "Substitutive Interrogative Pronoun"],
- ["TRUNC","TRUNC ","Truncated"],
- ["VAFIN","VAFIN ", "Auxiliary Finite Verb"],
- ["VAINF","VAINF ", "Auxiliary Infinite Verb"],
- ["VAIMP","VAIMP ", "Auxiliary Finite Imperative Verb"],
- ["VAPP","VAPP ", "Auxiliary Perfect Participle"],
- ["VMFIN","VMFIN ", "Modal Finite Verb"],
- ["VMINF","VMINF ", "Modal Infinite Verb"],
- ["VMPP","VMPP ", "Modal Perfect Participle"],
- ["VVFIN","VVFIN ","Finite Verb"],
- ["VVIMP","VVIMP ", "Finite Imperative Verb"],
- ["VVINF","VVINF ", "Infinite Verb"],
- ["VVIZU","VVIZU ", "Infinite Verb with 'zu'"],
- ["VVPP","VVPP ", "Perfect Participle"],
- ["XY", "XY ", "Non-Word"]
-];
-
-var mateSttsArray = sttsArray.slice(0);
-mateSttsArray.push(
- ["<root-POS>","<root-POS>","Root Part of Speech"]
-);
-
-
-var hintArray = {
- "-" : [
- ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
- ["CoreNLP", "corenlp/", "Named Entities"],
- ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
- ["OpenNLP", "opennlp/", "Part-of-Speech"],
- ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
- ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
- ],
- "corenlp/" : [
- ["Named Entity", "ne=" , "Combined"],
- ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
- ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"]
- ],
- "corenlp/ne=" : namedEntities,
- "corenlp/ne_dewac_175m_600=" : namedEntities,
- "corenlp/ne_hgc_175m_600=" : namedEntities,
- "cnx/" : [
- ["Constituency", "c="],
- ["Lemma", "l="],
- ["Morphology", "m="],
- ["Part-of-Speech", "p="],
- ["Syntax", "syn="]
- ],
- "cnx/c=" : [
- ["np", "np ", "Nominal Phrase"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
- "cnx/m=" : [
- ["Abbr","Abbr ", "Nouns: Abbreviation"],
- ["CMP","CMP ", "Adjective: Comparative"],
- ["IMP", "IMP ", "Mood: Imperative"],
- ["IND", "IND ", "Mood: Indicative"],
- ["INF", "INF ", "Infinitive"],
- ["ORD","ORD ", "Numeral: Ordinal"],
- ["PAST", "PAST ", "Tense: past"],
- ["PCP", "PCP ", "Participle"],
- ["PERF", "PERF ", "Perfective Participle"],
- ["PL","PL ", "Nouns: Plural"],
- ["PRES", "PRES ", "Tense: present"],
- ["PROG", "PROG ", "Progressive Participle"],
- ["Prop","Prop ", "Nouns: Proper Noun"],
- ["SUB", "SUB ", "Mood: Subjunctive"],
- ["SUP","SUP ", "Adjective: Superlative"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
- "cnx/p=" : [
- ["A", "A ", "Adjective"],
- ["ADV", "ADV ", "Adverb"],
- ["CC", "CC ", "Coordination Marker"],
- ["CS", "CS ", "Clause Marker"],
- ["DET", "DET ", "Determiner"],
- ["INTERJ", "INTERJ ", "Interjection"],
- ["N", "N ", "Noun"],
- ["NUM", "NUM ", "Numeral"],
- ["PREP", "PREP ", "Preposition"],
- ["PRON", "PRON ", "Pro-Nominal"],
- ["V", "V ", "Verb"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
- "cnx/syn=" : [
- ["@ADVL", "@ADVL ", "Adverbial Head"],
- ["@AUX", "@AUX ", "Auxiliary Verb"],
- ["@CC", "@CC ", "Coordination"]
- ["@MAIN", "@MAIN ", "Main Verb"],
- ["@NH", "@NH ", "Nominal Head"],
- ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
- ["@PREMARK", "@PREMARK ", "Preposed Marker"],
- ["@PREMOD", "@POSTMOD ", "Premodifier"]
- ],
- "opennlp/" : [
- ["Part-of-Speech", "p="]
- ],
- "opennlp/p=" : sttsArray,
- "xip/" : [
- ["Constituency", "c="],
- // Inactive: ["Dependency", "d="],
- ["Lemma", "l="],
- ["Part-of-Speech", "p="],
- ],
- // "xip/c=" : [],
- // Inactive: "xip/d=" : [],
- // "xip/p=" : [],
- "tt/" : [
- ["Lemma", "l="],
- ["Part-of-Speech", "p="]
- ],
- "tt/p=" : sttsArray,
- "mate/" : [
- // Inactive: "d" : ["d=", "Dependency"],
- ["Lemma", "l="],
- ["Morphology", "m="],
- ["Part-of-Speech", "p="]
- ],
- // Inactive: mate/d=
- "mate/p=" : mateSttsArray,
- "mate/m=" : [
- ["Case", "case:"],
- ["Degree", "degree:"],
- ["Gender", "gender:"],
- ["Mood", "mood:"],
- ["Number", "number:"],
- ["Person", "person:"],
- ["Tense","tense:"],
- ["No type", "<no-type> "]
- ],
- "mate/m=case:" : [
- ["acc", "acc ", "Accusative"],
- ["dat","dat ", "Dative"],
- ["gen", "gen ","Genitive"],
- ["nom","nom ", "Nominative"],
- ["*","* ", "Undefined"]
- ],
- "mate/m=degree:" : [
- ["comp","comp ", "Comparative"],
- ["pos","pos ", "Positive"],
- ["sup","sup ", "Superative"]
- ],
- "mate/m=gender:" : [
- ["fem", "fem ", "Feminium"],
- ["masc", "masc ", "Masculinum"],
- ["neut","neut ", "Neuter"],
- ["*","* ","Undefined"]
- ],
- "mate/m=mood:" : [
- ["imp","imp ", "Imperative"],
- ["ind","ind ", "Indicative"],
- ["subj","subj ", "Subjunctive"]
- ],
- "mate/m=number:" : [
- ["pl","pl ","Plural"],
- ["sg","sg ","Singular"],
- ["*","* ","Undefined"]
- ],
- "mate/m=person:" : [
- ["1","1 ", "First Person"],
- ["2","2 ", "Second Person"],
- ["3","3 ", "Third Person"]
- ],
- "mate/m=tense:" : [
- ["past","past ", "Past"],
- ["pres","pres ", "Present"]
- ]
-};
-
requirejs.config({
baseUrl: '../js/src',
paths : {
@@ -223,7 +5,7 @@
}
});
-require(['hint','lib/domReady'], function (hintClass, domReady) {
+require(['hint','hint/array','lib/domReady'], function (hintClass, hintArray, domReady) {
KorAP.hintArray = hintArray;
domReady(function() {
hintClass.create();
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index ac50f0f..c7f53bd 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -129,6 +129,10 @@
expect(analyzer.test("cnx/c=npcnx/")).toEqual("npcnx/");
expect(analyzer.test("mate/m=degree:pos corenlp/ne_dewac_175m_600="))
.toEqual("corenlp/ne_dewac_175m_600=");
+ expect(analyzer.test("corenlp/")).toEqual("corenlp/");
+ expect(analyzer.test("corenlp/c=")).toEqual("corenlp/c=");
+ expect(analyzer.test("corenlp/c=PP-")).toEqual("corenlp/c=PP-");
+ expect(analyzer.test("corenlp/c=XY-")).toEqual("corenlp/c=XY-");
});
});
diff --git a/dev/js/src/hint.js b/dev/js/src/hint.js
index f2f3149..45d2169 100644
--- a/dev/js/src/hint.js
+++ b/dev/js/src/hint.js
@@ -22,7 +22,10 @@
"((?:[-_a-zA-Z0-9]+?)\/" + // Foundry
"(?:" +
"(?:[-_a-zA-Z0-9]+?)=" + // Layer
- "(?:(?:[^:=\/ ]+?):)?" + // Key
+ "(?:"+
+ "(?:[^:=\/ ]+?):|" + // Key
+ "(?:[^-=\/ ]+?)-" + // Node
+ ")?" +
")?" +
")$";
KorAP.hintArray = KorAP.hintArray || {};
diff --git a/dev/js/src/hint/array.js b/dev/js/src/hint/array.js
index 32c3364..3002d36 100644
--- a/dev/js/src/hint/array.js
+++ b/dev/js/src/hint/array.js
@@ -71,153 +71,244 @@
["XY", "XY ", "Non-Word"]
];
+// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/negra-corpus.html
+// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/knoten.html
+var negraNodes = [
+ ["AA", "AA", "superlative phrase with 'am'"],
+ ["AP","AP", "adjektive phrase"],
+ ["AVP","AVP", "adverbial phrase"],
+ ["CAP","CAP", "coordinated adjektive phrase"],
+ ["CAVP","CAVP", "coordinated adverbial phrase"],
+ ["CAC","CAC", "coordinated adposition"],
+ ["CCP","CCP", "coordinated complementiser"],
+ ["CH","CH", "chunk"],
+ ["CNP","CNP", "coordinated noun phrase"],
+ ["CO","CO", "coordination"],
+ ["CPP","CPP", "coordinated adpositional phrase"],
+ ["CS","CS", "coordinated sentence"],
+ ["CVP","CVP", "coordinated verb phrase (non-finite)"],
+ ["CVZ","CVZ", "coordinated zu-marked infinitive"],
+ ["DL","DL", "discourse level constituent"],
+ ["ISU","ISU", "idiosyncratis unit"],
+ ["MPN","MPN", "multi-word proper noun"],
+ ["MTA","MTA", "multi-token adjective"],
+ ["NM","NM", "multi-token number"],
+ ["NP","NP", "noun phrase"],
+ ["PP","PP", "adpositional phrase"],
+ ["QL","QL", "quasi-languag"],
+ ["ROOT","ROOT", "root node"],
+ ["S","S", "sentence"],
+ ["VP","VP", "verb phrase (non-finite)"],
+ ["VZ","VZ", "zu-marked infinitive"]
+];
+
+// http://www.coli.uni-saarland.de/projects/sfb378/negra-corpus/kanten.html
+var negraEdges = [
+ ["AC","AC","adpositional case marker"],
+ ["ADC","ADC","adjective component"],
+ ["AMS","AMS","measure argument of adj"],
+ ["APP","APP","apposition"],
+ ["AVC","AVC","adverbial phrase component"],
+ ["CC","CC","comparative complement"],
+ ["CD","CD","coordinating conjunction"],
+ ["CJ","CJ","conjunct"],
+ ["CM","CM","comparative concjunction"],
+ ["CP","CP","complementizer"],
+ ["DA","DA","dative"],
+ ["DH","DH","discourse-level head"],
+ ["DM","DM","discourse marker"],
+ ["GL","GL","prenominal genitive"],
+ ["GR","GR","postnominal genitive"],
+ ["HD","HD","head"],
+ ["JU","JU","junctor"],
+ ["MC","MC","comitative"],
+ ["MI","MI","instrumental"],
+ ["ML","ML","locative"],
+ ["MNR","MNR","postnominal modifier"],
+ ["MO","MO","modifier"],
+ ["MR","MR","rhetorical modifier"],
+ ["MW","MW","way (directional modifier)"],
+ ["NG","NG","negation"],
+ ["NK","NK","noun kernel modifier"],
+ ["NMC","NMC","numerical component"],
+ ["OA","OA","accusative object"],
+ ["OA2","OA2","second accusative object"],
+ ["OC","OC","clausal object"],
+ ["OG","OG","genitive object"],
+ ["PD","PD","predicate"],
+ ["PG","PG","pseudo-genitive"],
+ ["PH","PH","placeholder"],
+ ["PM","PM","morphological particle"],
+ ["PNC","PNC","proper noun component"],
+ ["RC","RC","relative clause"],
+ ["RE","RE","repeated element"],
+ ["RS","RS","reported speech"],
+ ["SB","SB","subject"],
+ ["SBP","SBP","passivised subject (PP)"],
+ ["SP","SP","subject or predicate"],
+ ["SVP","SVP","separable verb prefix"],
+ ["UC","UC","(idiosyncratic) unit component"],
+ ["VO","VO","vocative"]
+];
+
var mateSttsArray = sttsArray.slice(0);
mateSttsArray.push(
["<root-POS>","<root-POS>","Root Part of Speech"]
);
+define(function () {
+ var obj = {
+ "-" : [
+ ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
+ ["CoreNLP", "corenlp/", "Constituency, Named Entities, Part-of-Speech"],
+ ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
+ ["OpenNLP", "opennlp/", "Part-of-Speech"],
+ ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
+ ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
+ ],
+ "corenlp/" : [
+ ["Constituency", "c="],
+ ["Named Entity", "ne=" , "Combined"],
+ ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
+ ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"],
+ ["Part-of-Speech", "p="]
+ ],
+ "corenlp/ne=" : namedEntities,
+ "corenlp/ne_dewac_175m_600=" : namedEntities,
+ "corenlp/ne_hgc_175m_600=" : namedEntities,
+ "corenlp/p=" : sttsArray,
+ "corenlp/c=" : negraNodes,
+ "cnx/" : [
+ ["Constituency", "c="],
+ ["Lemma", "l="],
+ ["Morphology", "m="],
+ ["Part-of-Speech", "p="],
+ ["Syntax", "syn="]
+ ],
+ "cnx/c=" : [
+ ["np", "np ", "Nominal Phrase"]
+ ],
+ // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
+ "cnx/m=" : [
+ ["Abbr","Abbr ", "Nouns: Abbreviation"],
+ ["CMP","CMP ", "Adjective: Comparative"],
+ ["IMP", "IMP ", "Mood: Imperative"],
+ ["IND", "IND ", "Mood: Indicative"],
+ ["INF", "INF ", "Infinitive"],
+ ["ORD","ORD ", "Numeral: Ordinal"],
+ ["PAST", "PAST ", "Tense: past"],
+ ["PCP", "PCP ", "Participle"],
+ ["PERF", "PERF ", "Perfective Participle"],
+ ["PL","PL ", "Nouns: Plural"],
+ ["PRES", "PRES ", "Tense: present"],
+ ["PROG", "PROG ", "Progressive Participle"],
+ ["Prop","Prop ", "Nouns: Proper Noun"],
+ ["SUB", "SUB ", "Mood: Subjunctive"],
+ ["SUP","SUP ", "Adjective: Superlative"]
+ ],
+ // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
+ "cnx/p=" : [
+ ["A", "A ", "Adjective"],
+ ["ADV", "ADV ", "Adverb"],
+ ["CC", "CC ", "Coordination Marker"],
+ ["CS", "CS ", "Clause Marker"],
+ ["DET", "DET ", "Determiner"],
+ ["INTERJ", "INTERJ ", "Interjection"],
+ ["N", "N ", "Noun"],
+ ["NUM", "NUM ", "Numeral"],
+ ["PREP", "PREP ", "Preposition"],
+ ["PRON", "PRON ", "Pro-Nominal"],
+ ["V", "V ", "Verb"]
+ ],
+ // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
+ "cnx/syn=" : [
+ ["@ADVL", "@ADVL ", "Adverbial Head"],
+ ["@AUX", "@AUX ", "Auxiliary Verb"],
+ ["@CC", "@CC ", "Coordination"]
+ ["@MAIN", "@MAIN ", "Main Verb"],
+ ["@NH", "@NH ", "Nominal Head"],
+ ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
+ ["@PREMARK", "@PREMARK ", "Preposed Marker"],
+ ["@PREMOD", "@POSTMOD ", "Premodifier"]
+ ],
+ "opennlp/" : [
+ ["Part-of-Speech", "p="]
+ ],
+ "opennlp/p=" : sttsArray,
+ "xip/" : [
+ ["Constituency", "c="],
+ // Inactive: ["Dependency", "d="],
+ ["Lemma", "l="],
+ ["Part-of-Speech", "p="],
+ ],
+ // "xip/c=" : [],
+ // Inactive: "xip/d=" : [],
+ // "xip/p=" : [],
+ "tt/" : [
+ ["Lemma", "l="],
+ ["Part-of-Speech", "p="]
+ ],
+ "tt/p=" : sttsArray,
+ "mate/" : [
+ // Inactive: "d" : ["d=", "Dependency"],
+ ["Lemma", "l="],
+ ["Morphology", "m="],
+ ["Part-of-Speech", "p="]
+ ],
+ // Inactive: mate/d=
+ "mate/p=" : mateSttsArray,
+ "mate/m=" : [
+ ["Case", "case:"],
+ ["Degree", "degree:"],
+ ["Gender", "gender:"],
+ ["Mood", "mood:"],
+ ["Number", "number:"],
+ ["Person", "person:"],
+ ["Tense","tense:"],
+ ["No type", "<no-type> "]
+ ],
+ "mate/m=case:" : [
+ ["acc", "acc ", "Accusative"],
+ ["dat","dat ", "Dative"],
+ ["gen", "gen ","Genitive"],
+ ["nom","nom ", "Nominative"],
+ ["*","* ", "Undefined"]
+ ],
+ "mate/m=degree:" : [
+ ["comp","comp ", "Comparative"],
+ ["pos","pos ", "Positive"],
+ ["sup","sup ", "Superative"]
+ ],
+ "mate/m=gender:" : [
+ ["fem", "fem ", "Feminium"],
+ ["masc", "masc ", "Masculinum"],
+ ["neut","neut ", "Neuter"],
+ ["*","* ","Undefined"]
+ ],
+ "mate/m=mood:" : [
+ ["imp","imp ", "Imperative"],
+ ["ind","ind ", "Indicative"],
+ ["subj","subj ", "Subjunctive"]
+ ],
+ "mate/m=number:" : [
+ ["pl","pl ","Plural"],
+ ["sg","sg ","Singular"],
+ ["*","* ","Undefined"]
+ ],
+ "mate/m=person:" : [
+ ["1","1 ", "First Person"],
+ ["2","2 ", "Second Person"],
+ ["3","3 ", "Third Person"]
+ ],
+ "mate/m=tense:" : [
+ ["past","past ", "Past"],
+ ["pres","pres ", "Present"]
+ ]
+ };
-define({
- "-" : [
- ["Connexor", "cnx/", "Constituency, Lemma, Morphology, Part-of-Speech, Syntax"],
- ["CoreNLP", "corenlp/", "Named Entities"],
- ["Mate", "mate/", "Lemma, Morphology, Part-of-Speech"],
- ["OpenNLP", "opennlp/", "Part-of-Speech"],
- ["TreeTagger", "tt/", "Lemma, Part-of-Speech"],
- ["Xerox Parser", "xip/", "Constituency, Lemma, Part-of-Speech"]
- ],
- "corenlp/" : [
- ["Named Entity", "ne=" , "Combined"],
- ["Named Entity", "ne_dewac_175m_600=" , "ne_dewac_175m_600"],
- ["Named Entity", "ne_hgc_175m_600=", "ne_hgc_175m_600"]
- ],
- "corenlp/ne=" : namedEntities,
- "corenlp/ne_dewac_175m_600=" : namedEntities,
- "corenlp/ne_hgc_175m_600=" : namedEntities,
- "cnx/" : [
- ["Constituency", "c="],
- ["Lemma", "l="],
- ["Morphology", "m="],
- ["Part-of-Speech", "p="],
- ["Syntax", "syn="]
- ],
- "cnx/c=" : [
- ["np", "np ", "Nominal Phrase"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
- "cnx/m=" : [
- ["Abbr","Abbr ", "Nouns: Abbreviation"],
- ["CMP","CMP ", "Adjective: Comparative"],
- ["IMP", "IMP ", "Mood: Imperative"],
- ["IND", "IND ", "Mood: Indicative"],
- ["INF", "INF ", "Infinitive"],
- ["ORD","ORD ", "Numeral: Ordinal"],
- ["PAST", "PAST ", "Tense: past"],
- ["PCP", "PCP ", "Participle"],
- ["PERF", "PERF ", "Perfective Participle"],
- ["PL","PL ", "Nouns: Plural"],
- ["PRES", "PRES ", "Tense: present"],
- ["PROG", "PROG ", "Progressive Participle"],
- ["Prop","Prop ", "Nouns: Proper Noun"],
- ["SUB", "SUB ", "Mood: Subjunctive"],
- ["SUP","SUP ", "Adjective: Superlative"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/morph.html
- "cnx/p=" : [
- ["A", "A ", "Adjective"],
- ["ADV", "ADV ", "Adverb"],
- ["CC", "CC ", "Coordination Marker"],
- ["CS", "CS ", "Clause Marker"],
- ["DET", "DET ", "Determiner"],
- ["INTERJ", "INTERJ ", "Interjection"],
- ["N", "N ", "Noun"],
- ["NUM", "NUM ", "Numeral"],
- ["PREP", "PREP ", "Preposition"],
- ["PRON", "PRON ", "Pro-Nominal"],
- ["V", "V ", "Verb"]
- ],
- // http://www.ids-mannheim.de/cosmas2/projekt/referenz/connexor/syntax.html
- "cnx/syn=" : [
- ["@ADVL", "@ADVL ", "Adverbial Head"],
- ["@AUX", "@AUX ", "Auxiliary Verb"],
- ["@CC", "@CC ", "Coordination"]
- ["@MAIN", "@MAIN ", "Main Verb"],
- ["@NH", "@NH ", "Nominal Head"],
- ["@POSTMOD", "@POSTMOD ", "Postmodifier"],
- ["@PREMARK", "@PREMARK ", "Preposed Marker"],
- ["@PREMOD", "@POSTMOD ", "Premodifier"]
- ],
- "opennlp/" : [
- ["Part-of-Speech", "p="]
- ],
- "opennlp/p=" : sttsArray,
- "xip/" : [
- ["Constituency", "c="],
- // Inactive: ["Dependency", "d="],
- ["Lemma", "l="],
- ["Part-of-Speech", "p="],
- ],
- // "xip/c=" : [],
- // Inactive: "xip/d=" : [],
- // "xip/p=" : [],
- "tt/" : [
- ["Lemma", "l="],
- ["Part-of-Speech", "p="]
- ],
- "tt/p=" : sttsArray,
- "mate/" : [
- // Inactive: "d" : ["d=", "Dependency"],
- ["Lemma", "l="],
- ["Morphology", "m="],
- ["Part-of-Speech", "p="]
- ],
- // Inactive: mate/d=
- "mate/p=" : mateSttsArray,
- "mate/m=" : [
- ["Case", "case:"],
- ["Degree", "degree:"],
- ["Gender", "gender:"],
- ["Mood", "mood:"],
- ["Number", "number:"],
- ["Person", "person:"],
- ["Tense","tense:"],
- ["No type", "<no-type> "]
- ],
- "mate/m=case:" : [
- ["acc", "acc ", "Accusative"],
- ["dat","dat ", "Dative"],
- ["gen", "gen ","Genitive"],
- ["nom","nom ", "Nominative"],
- ["*","* ", "Undefined"]
- ],
- "mate/m=degree:" : [
- ["comp","comp ", "Comparative"],
- ["pos","pos ", "Positive"],
- ["sup","sup ", "Superative"]
- ],
- "mate/m=gender:" : [
- ["fem", "fem ", "Feminium"],
- ["masc", "masc ", "Masculinum"],
- ["neut","neut ", "Neuter"],
- ["*","* ","Undefined"]
- ],
- "mate/m=mood:" : [
- ["imp","imp ", "Imperative"],
- ["ind","ind ", "Indicative"],
- ["subj","subj ", "Subjunctive"]
- ],
- "mate/m=number:" : [
- ["pl","pl ","Plural"],
- ["sg","sg ","Singular"],
- ["*","* ","Undefined"]
- ],
- "mate/m=person:" : [
- ["1","1 ", "First Person"],
- ["2","2 ", "Second Person"],
- ["3","3 ", "Third Person"]
- ],
- "mate/m=tense:" : [
- ["past","past ", "Past"],
- ["pres","pres ", "Present"]
- ]
+ for (var i in negraNodes) {
+ obj["corenlp/c=" + negraNodes[i][0] + '-'] = negraEdges;
+ };
+
+ return obj;
});