spaCy/spacy/parts_of_speech.pyx

29 lines
448 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,
2015-01-25 05:32:26 +00:00
"CONJ": CONJ,
"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()}