mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
31 lines
489 B
Cython
31 lines
489 B
Cython
# coding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
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()}
|