mirror of https://github.com/explosion/spaCy.git
* Fix Issue #22: PRP and PRP$ were mapped to NOUN. Should be PRON.
This commit is contained in:
parent
99f0a315f9
commit
be5536d239
|
@ -9,8 +9,9 @@ from cymem.cymem cimport Address
|
||||||
from thinc.typedefs cimport atom_t, weight_t
|
from thinc.typedefs cimport atom_t, weight_t
|
||||||
|
|
||||||
from ..parts_of_speech cimport univ_pos_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 NO_TAG, ADJ, ADV, ADP, CONJ, DET, NOUN, NUM, PRON
|
||||||
from ..parts_of_speech cimport X, PUNCT, EOL
|
|
||||||
|
from ..parts_of_speech cimport PRT, VERB, X, PUNCT, EOL
|
||||||
from ..typedefs cimport id_t
|
from ..typedefs cimport id_t
|
||||||
from ..structs cimport TokenC, Morphology, LexemeC
|
from ..structs cimport TokenC, Morphology, LexemeC
|
||||||
from ..tokens cimport Tokens
|
from ..tokens cimport Tokens
|
||||||
|
@ -140,8 +141,8 @@ POS_TAGS = {
|
||||||
'NNPS': (NOUN, {'misc': NAME, 'number': PLURAL}),
|
'NNPS': (NOUN, {'misc': NAME, 'number': PLURAL}),
|
||||||
'PDT': (DET, {}),
|
'PDT': (DET, {}),
|
||||||
'POS': (PRT, {'case': GENITIVE}),
|
'POS': (PRT, {'case': GENITIVE}),
|
||||||
'PRP': (NOUN, {}),
|
'PRP': (PRON, {}),
|
||||||
'PRP$': (NOUN, {'case': GENITIVE}),
|
'PRP$': (PRON, {'case': GENITIVE}),
|
||||||
'RB': (ADV, {}),
|
'RB': (ADV, {}),
|
||||||
'RBR': (ADV, {'misc': COMPARATIVE}),
|
'RBR': (ADV, {'misc': COMPARATIVE}),
|
||||||
'RBS': (ADV, {'misc': SUPERLATIVE}),
|
'RBS': (ADV, {'misc': SUPERLATIVE}),
|
||||||
|
|
Loading…
Reference in New Issue