-
Notifications
You must be signed in to change notification settings - Fork 5
/
const.py
43 lines (37 loc) · 1.3 KB
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DUMMY_LABEL = "Y|X"
DATA_PATH = "data/spmrl/"
DEP_DATA_PATH = "data/bht/"
TETRATAGGER = "tetra"
HEXATAGGER = "hexa"
TD_SR = "td-sr"
BU_SR = "bu-sr"
BERT = ["bert", "roberta", "robertaL"]
BERTCRF = ["bert+crf", "roberta+crf", "robertaL+crf"]
BERTLSTM = ["bert+lstm", "roberta+lstm", "robertaL+lstm"]
BAQ = "Basque"
CHN = "Chinese"
CHN09 = "Chinese-conll09"
FRE = "French"
GER = "German"
HEB = "Hebrew"
HUN = "Hungarian"
KOR = "Korean"
POL = "Polish"
SWE = "swedish"
ENG = "English"
LANG = [BAQ, CHN, CHN09, FRE, GER, HEB, HUN, KOR, POL, SWE, ENG,
"bg","ca","cs","de","en","es", "fr","it","nl","no","ro","ru"]
UD_LANG_TO_DIR = {
"bg": "/UD_Bulgarian-BTB/bg_btb-ud-{split}.conllu",
"ca": "/UD_Catalan-AnCora/ca_ancora-ud-{split}.conllu",
"cs": "/UD_Czech-PDT/cs_pdt-ud-{split}.conllu",
"de": "/UD_German-GSD/de_gsd-ud-{split}.conllu",
"en": "/UD_English-EWT/en_ewt-ud-{split}.conllu",
"es": "/UD_Spanish-AnCora/es_ancora-ud-{split}.conllu",
"fr": "/UD_French-GSD/fr_gsd-ud-{split}.conllu",
"it": "/UD_Italian-ISDT/it_isdt-ud-{split}.conllu",
"nl": "/UD_Dutch-Alpino/nl_alpino-ud-{split}.conllu",
"no": "/UD_Norwegian-Bokmaal/no_bokmaal-ud-{split}.conllu",
"ro": "/UD_Romanian-RRT/ro_rrt-ud-{split}.conllu",
"ru": "/UD_Russian-SynTagRus/ru_syntagrus-ud-{split}.conllu",
}