Skip to content

Commit fe9299a

Browse files
committed
* Fix long-standing issue with coarse-grained tags: proper nouns weren't receiving the PROPN tag, and personal pronouns weren't receiving the PRON tag. This should fix Issue explosion#191, and also Issue explosion#325, which reported that proper nouns were being lemmatized using the common noun policies. This lemmatization will be prevented if the universal tag is PROPN, not NOUN, as no lemmatization rules are loaded for the PROPN tag.
1 parent 6f82065 commit fe9299a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lang_data/en/tag_map.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"MD": {"pos": "verb", "verbtype": "mod"},
2525
"NIL": {"pos": ""},
2626
"NN": {"pos": "noun", "number": "sing"},
27-
"NNP": {"pos": "noun", "nountype": "prop", "number": "sing"},
28-
"NNPS": {"pos": "noun", "nountype": "prop", "number": "plur"},
27+
"NNP": {"pos": "propn", "nountype": "prop", "number": "sing"},
28+
"NNPS": {"pos": "propn", "nountype": "prop", "number": "plur"},
2929
"NNS": {"pos": "noun", "number": "plur"},
3030
"PDT": {"pos": "adj", "adjtype": "pdt", "prontype": "prn"},
3131
"POS": {"pos": "part", "poss": "poss"},
32-
"PRP": {"pos": "noun", "prontype": "prs"},
32+
"PRP": {"pos": "pron", "prontype": "prs"},
3333
"PRP$": {"pos": "adj", "prontype": "prs", "poss": "poss"},
3434
"RB": {"pos": "adv", "degree": "pos"},
3535
"RBR": {"pos": "adv", "degree": "comp"},

0 commit comments

Comments
 (0)