mirror of https://github.com/explosion/spaCy.git
Fix capitalization on morphological features
This commit is contained in:
parent
ce979553df
commit
ec44bee321
|
@ -10,55 +10,55 @@ PRON_LEMMA = "-PRON-"
|
||||||
|
|
||||||
|
|
||||||
TAG_MAP = {
|
TAG_MAP = {
|
||||||
".": {POS: PUNCT, "puncttype": "peri"},
|
".": {POS: PUNCT, "PunctType": "peri"},
|
||||||
",": {POS: PUNCT, "puncttype": "comm"},
|
",": {POS: PUNCT, "PunctType": "comm"},
|
||||||
"-LRB-": {POS: PUNCT, "puncttype": "brck", "punctside": "ini"},
|
"-LRB-": {POS: PUNCT, "PunctType": "brck", "PunctSide": "ini"},
|
||||||
"-RRB-": {POS: PUNCT, "puncttype": "brck", "punctside": "fin"},
|
"-RRB-": {POS: PUNCT, "PunctType": "brck", "PunctSide": "fin"},
|
||||||
"``": {POS: PUNCT, "puncttype": "quot", "punctside": "ini"},
|
"``": {POS: PUNCT, "PunctType": "quot", "PunctSide": "ini"},
|
||||||
"\"\"": {POS: PUNCT, "puncttype": "quot", "punctside": "fin"},
|
"\"\"": {POS: PUNCT, "PunctType": "quot", "PunctSide": "fin"},
|
||||||
"''": {POS: PUNCT, "puncttype": "quot", "punctside": "fin"},
|
"''": {POS: PUNCT, "PunctType": "quot", "PunctSide": "fin"},
|
||||||
":": {POS: PUNCT},
|
":": {POS: PUNCT},
|
||||||
"$": {POS: SYM, "other": {"symtype": "currency"}},
|
"$": {POS: SYM, "Other": {"SymType": "currency"}},
|
||||||
"#": {POS: SYM, "other": {"symtype": "numbersign"}},
|
"#": {POS: SYM, "Other": {"SymType": "numbersign"}},
|
||||||
"AFX": {POS: ADJ, "hyph": "hyph"},
|
"AFX": {POS: ADJ, "Hyph": "yes"},
|
||||||
"CC": {POS: CONJ, "conjtype": "coor"},
|
"CC": {POS: CONJ, "ConjType": "coor"},
|
||||||
"CD": {POS: NUM, "numtype": "card"},
|
"CD": {POS: NUM, "NumType": "card"},
|
||||||
"DT": {POS: DET},
|
"DT": {POS: DET},
|
||||||
"EX": {POS: ADV, "advtype": "ex"},
|
"EX": {POS: ADV, "AdvType": "ex"},
|
||||||
"FW": {POS: X, "foreign": "foreign"},
|
"FW": {POS: X, "Foreign": "yes"},
|
||||||
"HYPH": {POS: PUNCT, "puncttype": "dash"},
|
"HYPH": {POS: PUNCT, "PunctType": "dash"},
|
||||||
"IN": {POS: ADP},
|
"IN": {POS: ADP},
|
||||||
"JJ": {POS: ADJ, "degree": "pos"},
|
"JJ": {POS: ADJ, "Degree": "pos"},
|
||||||
"JJR": {POS: ADJ, "degree": "comp"},
|
"JJR": {POS: ADJ, "Degree": "comp"},
|
||||||
"JJS": {POS: ADJ, "degree": "sup"},
|
"JJS": {POS: ADJ, "Degree": "sup"},
|
||||||
"LS": {POS: PUNCT, "numtype": "ord"},
|
"LS": {POS: PUNCT, "NumType": "ord"},
|
||||||
"MD": {POS: VERB, "verbtype": "mod"},
|
"MD": {POS: VERB, "VerbType": "mod"},
|
||||||
"NIL": {POS: ""},
|
"NIL": {POS: ""},
|
||||||
"NN": {POS: NOUN, "number": "sing"},
|
"NN": {POS: NOUN, "Number": "sing"},
|
||||||
"NNP": {POS: PROPN, "nountype": "prop", "number": "sing"},
|
"NNP": {POS: PROPN, "NounType": "prop", "Number": "sing"},
|
||||||
"NNPS": {POS: PROPN, "nountype": "prop", "number": "plur"},
|
"NNPS": {POS: PROPN, "NounType": "prop", "Number": "plur"},
|
||||||
"NNS": {POS: NOUN, "number": "plur"},
|
"NNS": {POS: NOUN, "Number": "plur"},
|
||||||
"PDT": {POS: ADJ, "adjtype": "pdt", "prontype": "prn"},
|
"PDT": {POS: ADJ, "AdjType": "pdt", "PronType": "prn"},
|
||||||
"POS": {POS: PART, "poss": "poss"},
|
"POS": {POS: PART, "Poss": "yes"},
|
||||||
"PRP": {POS: PRON, "prontype": "prs"},
|
"PRP": {POS: PRON, "PronType": "prs"},
|
||||||
"PRP$": {POS: ADJ, "prontype": "prs", "poss": "poss"},
|
"PRP$": {POS: ADJ, "PronType": "prs", "Poss": "yes"},
|
||||||
"RB": {POS: ADV, "degree": "pos"},
|
"RB": {POS: ADV, "Degree": "pos"},
|
||||||
"RBR": {POS: ADV, "degree": "comp"},
|
"RBR": {POS: ADV, "Degree": "comp"},
|
||||||
"RBS": {POS: ADV, "degree": "sup"},
|
"RBS": {POS: ADV, "Degree": "sup"},
|
||||||
"RP": {POS: PART},
|
"RP": {POS: PART},
|
||||||
"SYM": {POS: SYM},
|
"SYM": {POS: SYM},
|
||||||
"TO": {POS: PART, "parttype": "inf", "verbform": "inf"},
|
"TO": {POS: PART, "PartType": "inf", "VerbForm": "inf"},
|
||||||
"UH": {POS: INTJ},
|
"UH": {POS: INTJ},
|
||||||
"VB": {POS: VERB, "verbform": "inf"},
|
"VB": {POS: VERB, "VerbForm": "inf"},
|
||||||
"VBD": {POS: VERB, "verbform": "fin", "tense": "past"},
|
"VBD": {POS: VERB, "VerbForm": "fin", "Tense": "past"},
|
||||||
"VBG": {POS: VERB, "verbform": "part", "tense": "pres", "aspect": "prog"},
|
"VBG": {POS: VERB, "VerbForm": "part", "Tense": "pres", "Aspect": "prog"},
|
||||||
"VBN": {POS: VERB, "verbform": "part", "tense": "past", "aspect": "perf"},
|
"VBN": {POS: VERB, "VerbForm": "part", "Tense": "past", "Aspect": "perf"},
|
||||||
"VBP": {POS: VERB, "verbform": "fin", "tense": "pres"},
|
"VBP": {POS: VERB, "VerbForm": "fin", "Tense": "pres"},
|
||||||
"VBZ": {POS: VERB, "verbform": "fin", "tense": "pres", "number": "sing", "person": 3},
|
"VBZ": {POS: VERB, "VerbForm": "fin", "Tense": "pres", "Number": "sing", "Person": 3},
|
||||||
"WDT": {POS: ADJ, "prontype": "int|rel"},
|
"WDT": {POS: ADJ, "PronType": "int|rel"},
|
||||||
"WP": {POS: NOUN, "prontype": "int|rel"},
|
"WP": {POS: NOUN, "PronType": "int|rel"},
|
||||||
"WP$": {POS: ADJ, "poss": "poss", "prontype": "int|rel"},
|
"WP$": {POS: ADJ, "Poss": "yes", "PronType": "int|rel"},
|
||||||
"WRB": {POS: ADV, "prontype": "int|rel"},
|
"WRB": {POS: ADV, "PronType": "int|rel"},
|
||||||
"SP": {POS: SPACE},
|
"SP": {POS: SPACE},
|
||||||
"ADD": {POS: X},
|
"ADD": {POS: X},
|
||||||
"NFP": {POS: PUNCT},
|
"NFP": {POS: PUNCT},
|
||||||
|
|
Loading…
Reference in New Issue