You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
575 B
33 lines
575 B
# cython: profile=False
|
|
IDS = {
|
|
"": NO_TAG,
|
|
"ADJ": ADJ,
|
|
"ADP": ADP,
|
|
"ADV": ADV,
|
|
"AUX": AUX,
|
|
"CONJ": CONJ, # U20
|
|
"CCONJ": CCONJ,
|
|
"DET": DET,
|
|
"INTJ": INTJ,
|
|
"NOUN": NOUN,
|
|
"NUM": NUM,
|
|
"PART": PART,
|
|
"PRON": PRON,
|
|
"PROPN": PROPN,
|
|
"PUNCT": PUNCT,
|
|
"SCONJ": SCONJ,
|
|
"SYM": SYM,
|
|
"VERB": VERB,
|
|
"X": X,
|
|
"EOL": EOL,
|
|
"SPACE": SPACE
|
|
}
|
|
|
|
|
|
NAMES = {value: key for key, value in IDS.items()}
|
|
|
|
# As of Cython 3.1, the global Python namespace no longer has the enum
|
|
# contents by default.
|
|
globals().update(IDS)
|
|
|