forked from rsennrich/wmt16-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.sh
72 lines (49 loc) · 1.4 KB
/
settings.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
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
64
65
66
67
68
69
70
71
72
#!/bin/bash
# DEFINE ALL VARIABLES HERE
# theano device, in case you do not want to compute on gpu, change it to cpu
DEVICE=gpu
# path to moses decoder: https://github.com/moses-smt/mosesdecoder
MOSESDECODER=/path/to/mosesdecoder
# path to subword segmentation scripts: https://github.com/rsennrich/subword-nmt
SUBWORD_NMT=/path/to/subword-nmt
# path to nematus ( https://www.github.com/rsennrich/nematus )
NEMATUS=/path/to/nematus
# suffix of source language files
SRC=en
# suffix of target language files
TGT=cs
# name of the training corpus prefix
TRAIN=train
# name of the dev corpus prefix
DEV=dev
# name of the test corpus prefix
TEST=test
# vocabulary size (number of BPE splits is automatically derived from this)
VOCAB_SIZE=90000
# embedding size
DIM_WORD=500
# size of the hidden layer
DIM=1024
# (initial) learning rate
LRATE=0.0001
# which optimization algorithm
OPTIMIZER=adam
# maximum sentence length
MAXLEN=50
# training batch size
BATCH_SIZE=80
# batch size for validation
VALID_BATCH_SIZE=80
# validation frequency
VALID_FREQ=10000
# validation frequency
SAMPLE_FREQ=5000
# how often to save the model
SAVE_FREQ=30000
# use dropout? (set to 'yes' to enable)
DROPOUT=no
# dropout settings at different stages
DROPOUT_EMBEDDING=0.2 # dropout for input embeddings
DROPOUT_HIDDEN=0.2 # dropout for hidden layers
DROPOUT_SOURCE=0.1 # dropout source words
DROPOUT_TARGET=0.1 # dropout target words