2017-04-15 10:05:47 +00:00
|
|
|
# coding: utf8
|
2015-01-25 05:32:26 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
2015-10-10 06:55:55 +00:00
|
|
|
IDS = {
|
2015-10-10 07:27:03 +00:00
|
|
|
"": NO_TAG,
|
2015-01-25 05:32:26 +00:00
|
|
|
"ADJ": ADJ,
|
|
|
|
"ADP": ADP,
|
2015-08-27 07:16:11 +00:00
|
|
|
"ADV": ADV,
|
|
|
|
"AUX": AUX,
|
2017-02-26 21:27:11 +00:00
|
|
|
"CONJ": CONJ, # U20
|
|
|
|
"CCONJ": CCONJ,
|
2015-01-25 05:32:26 +00:00
|
|
|
"DET": DET,
|
2015-08-27 07:16:11 +00:00
|
|
|
"INTJ": INTJ,
|
2015-01-25 05:32:26 +00:00
|
|
|
"NOUN": NOUN,
|
|
|
|
"NUM": NUM,
|
2015-08-27 07:16:11 +00:00
|
|
|
"PART": PART,
|
2015-01-25 05:32:26 +00:00
|
|
|
"PRON": PRON,
|
2015-08-27 07:16:11 +00:00
|
|
|
"PROPN": PROPN,
|
|
|
|
"PUNCT": PUNCT,
|
|
|
|
"SCONJ": SCONJ,
|
|
|
|
"SYM": SYM,
|
2015-01-25 05:32:26 +00:00
|
|
|
"VERB": VERB,
|
|
|
|
"X": X,
|
2015-08-27 07:16:11 +00:00
|
|
|
"EOL": EOL,
|
|
|
|
"SPACE": SPACE
|
2015-01-25 05:32:26 +00:00
|
|
|
}
|
2015-10-10 06:55:55 +00:00
|
|
|
|
|
|
|
|
2015-10-13 03:18:45 +00:00
|
|
|
NAMES = {value: key for key, value in IDS.items()}
|