spaCy/spacy/parts_of_speech.pyx

29 lines
481 B
Cython
Raw Normal View History

2015-01-25 05:32:26 +00:00
from __future__ import unicode_literals
IDS = {
2015-01-25 05:32:26 +00:00
"NO_TAG": NO_TAG,
"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 = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])]