spaCy/spacy/parts_of_speech.pyx

30 lines
474 B
Cython
Raw Normal View History

2015-01-25 05:32:26 +00:00
from __future__ import unicode_literals
IDS = {
"": NO_TAG,
2015-01-25 05:32:26 +00:00
"ADJ": ADJ,
"ADP": ADP,
"ADV": ADV,
"AUX": AUX,
"CONJ": CONJ, # U20
"CCONJ": CCONJ,
2015-01-25 05:32:26 +00:00
"DET": DET,
"INTJ": INTJ,
2015-01-25 05:32:26 +00:00
"NOUN": NOUN,
"NUM": NUM,
"PART": PART,
2015-01-25 05:32:26 +00:00
"PRON": PRON,
"PROPN": PROPN,
"PUNCT": PUNCT,
"SCONJ": SCONJ,
"SYM": SYM,
2015-01-25 05:32:26 +00:00
"VERB": VERB,
"X": X,
"EOL": EOL,
"SPACE": SPACE
2015-01-25 05:32:26 +00:00
}
NAMES = {value: key for key, value in IDS.items()}