-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtrain_en2cs.sh
executable file
·37 lines (37 loc) · 1.33 KB
/
train_en2cs.sh
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
#!/usr/bin/env bash
python3 -m sockeye.train --source data/en2cs/train.en.tok \
--target data/en2cs/train.BPE.cs.tok \
--source-graphs data/en2cs/train.en.deps \
--validation-source data/en2cs/val.en.tok \
--validation-target data/en2cs/val.BPE.cs.tok \
--val-source-graphs data/en2cs/val.en.deps \
--edge-vocab data/en2cs/edge_vocab.json \
--batch-size 24 \
--batch-type sentence \
--word-min-count 3:3 \
--num-embed 360:360 \
--embed-dropout .5:.5 \
--max-seq-len 199:199 \
--encoder gcn \
--gcn-activation relu \
--gcn-num-hidden 360 \
--gcn-pos-embed 360 \
--decoder rnn \
--num-layers 2:2 \
--rnn-num-hidden 360 \
--rnn-decoder-hidden-dropout 0.2 \
--checkpoint-frequency 1500 \
--max-num-checkpoint-not-improved 28 \
--initial-learning-rate 0.0003 \
--learning-rate-reduce-factor 0.7 \
--learning-rate-reduce-num-not-improved 7 \
--gcn-num-layers 2 \
--weight-init-xavier-factor-type in \
--weight-init-scale 2.34 \
--decode-and-evaluate 300 \
--output en2cs_model \
--overwrite-output \
--device-ids 0 \
--gcn-dropout 0.1 \
--gcn-adj-norm \
--rnn-attention-type coverage