-
Notifications
You must be signed in to change notification settings - Fork 0
/
chinese.py
34 lines (29 loc) · 1.02 KB
/
chinese.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
dict(
target = ["/data/nmt/works/step_-1_prepare_datas/binarized_text.en.shuf.h5"],
source = ["/data/nmt/works/step_-1_prepare_datas/binarized_text.zh.shuf.h5"],
indx_word = "/data/nmt/works/step_-1_prepare_datas/ivocab.zh.pkl",
indx_word_target = "/data/nmt/works/step_-1_prepare_datas/ivocab.en.pkl",
word_indx = "/data/nmt/works/step_-1_prepare_datas/vocab.zh.pkl",
word_indx_trgt = "/data/nmt/works/step_-1_prepare_datas/vocab.en.pkl",
seqlen = 50,
sort_k_batches = 20,
null_sym_source = 30000,
null_sym_target = 30000,
n_sym_source = 30001,
n_sym_target = 30001,
timeStop = 24*60*31,
loopIters = 36250*12*3,
hookFreq = 4000,
### for validation
beam_size = 10,
ignore_unk = False,
maxsamp = 10,
### variational
v_dim = 2000,
### dev setting
validFreq = 2000,
dev_record = "bleu.curve.record",
dev_src = "data/nist_test/nist05/src",
dev_tgt = "/data/nist05/ref.sgm",
dev_trs = "nist05.nmt.trs",
)