From be5536d239e57cf04567bc8a59054fd8ce9d741b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 8 Feb 2015 18:36:18 -0500 Subject: [PATCH] * Fix Issue #22: PRP and PRP$ were mapped to NOUN. Should be PRON. --- spacy/en/pos.pyx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spacy/en/pos.pyx b/spacy/en/pos.pyx index 4c233aa0c..f882e3f28 100644 --- a/spacy/en/pos.pyx +++ b/spacy/en/pos.pyx @@ -9,8 +9,9 @@ from cymem.cymem cimport Address from thinc.typedefs cimport atom_t, weight_t from ..parts_of_speech cimport univ_pos_t -from ..parts_of_speech cimport NO_TAG, ADJ, ADV, ADP, CONJ, DET, NOUN, NUM, PRON, PRT, VERB -from ..parts_of_speech cimport X, PUNCT, EOL +from ..parts_of_speech cimport NO_TAG, ADJ, ADV, ADP, CONJ, DET, NOUN, NUM, PRON + +from ..parts_of_speech cimport PRT, VERB, X, PUNCT, EOL from ..typedefs cimport id_t from ..structs cimport TokenC, Morphology, LexemeC from ..tokens cimport Tokens @@ -140,8 +141,8 @@ POS_TAGS = { 'NNPS': (NOUN, {'misc': NAME, 'number': PLURAL}), 'PDT': (DET, {}), 'POS': (PRT, {'case': GENITIVE}), - 'PRP': (NOUN, {}), - 'PRP$': (NOUN, {'case': GENITIVE}), + 'PRP': (PRON, {}), + 'PRP$': (PRON, {'case': GENITIVE}), 'RB': (ADV, {}), 'RBR': (ADV, {'misc': COMPARATIVE}), 'RBS': (ADV, {'misc': SUPERLATIVE}),