-
Notifications
You must be signed in to change notification settings - Fork 2
/
data_paths.py
63 lines (46 loc) · 1.41 KB
/
data_paths.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""
TODO: write me
"""
# multi-source data paths
src_vocabs = {
# spanish
'es': 'europarl-v7.es-en.es.tok.bpe20k.vocab.pkl',
# french
'fr': 'europarl-v7.fr-en.fr.tok.bpe20k.vocab.pkl',
}
trg_vocabs = {
# english
'en': 'europarl-v7.fr-en.en.tok.bpe20k.vocab.pkl',
}
src_datas = {
# spanish-english single pair data
'es_en': 'europarl-v7.es-en.es.tok.bpe20k',
# french-english single pair data
'fr_en': 'europarl-v7.fr-en.fr.tok.bpe20k',
# spanish + french - english multi-source data
'es.fr_en': {
'es': 'europarl-v7.esfr-en.es.tok.bpe20k',
'fr': 'europarl-v7.esfr-en.fr.tok.bpe20k'},
}
trg_datas = {
# spanish-english single pair data
'es_en': 'europarl-v7.es-en.en.tok.bpe20k',
# french-english single pair data
'fr_en': 'europarl-v7.fr-en.en.tok.bpe20k',
# spanish + french - english multi-source data
'es.fr_en': {
'en': 'europarl-v7.esfr-en.en.tok.bpe20k'},
}
log_prob_sets = {
# spanish-english
'es_en': ['dev/newstest2011.es.tok.bpe20k',
'dev/newstest2011.en.tok.bpe20k'],
# french-english
'fr_en': ['dev/newstest2011.fr.tok.bpe20k',
'dev/newstest2011.en.tok.bpe20k'],
# spanish + french -english multi-source
'es.fr_en': {
'es': 'dev/newstest2011.es.tok.bpe20k',
'fr': 'dev/newstest2011.fr.tok.bpe20k',
'en': 'dev/newstest2011.en.tok.bpe20k'},
}