spaCy/spacy/parts_of_speech.pyx

28 lines
457 B
Cython
Raw Permalink Normal View History

# cython: profile=False
IDS = {
"": NO_TAG,
2015-01-25 05:32:26 +00:00
"ADJ": ADJ,
"ADP": ADP,
"ADV": ADV,
"AUX": AUX,
2017-10-27 19:07:59 +00:00
"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()}