-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrans.sh
executable file
·28 lines (28 loc) · 1.54 KB
/
trans.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
#THEANO_FLAGS=mode=FAST_RUN,device=gpu0,floatX=float32,lib.cnmem=5000 python wtrans.py 13 263653 search_model_ch2en/params_e13_upd263653.npz $1 $2 $3
#THEANO_FLAGS=device=cpu,floatX=float32 python wtrans.py 13 263653 search_model_ch2en/params_e13_upd263653.npz $1 $2 $3
#THEANO_FLAGS=device=cpu,floatX=float32 python wtrans.py 13 263653 search_model_ch2en/params_e13_upd263653.npz $1 $2 $3
#THEANO_FLAGS=device=cpu,floatX=float32 python wtrans.py 13 263653 search_model_ch2en/params_e13_upd263653.npz $1 $2 $3
#THEANO_FLAGS=device=cpu,floatX=float32 python __trans__.py 13 263653 search_model_ch2en/params_e13_upd263653.npz 10 1
#THEANO_FLAGS=device=cpu,floatX=float32 python __trans__.py 13 263653 search_model_ch2en/params_e13_upd263653.npz 20 1
#THEANO_FLAGS=device=cpu,floatX=float32 python __trans__.py 13 263653 search_model_ch2en/params_e13_upd263653.npz 50 1
#THEANO_FLAGS=device=cpu,floatX=float32 python __trans__.py 13 263653 search_model_ch2en/params_e13_upd263653.npz 100 1
#THEANO_FLAGS=device=cpu,floatX=float32 python __trans__.py 13 263653 search_model_ch2en/params_e13_upd263653.npz 500 1
THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32 python wtrans.py \
--epoch $1 \
--batch $2 \
--model-name $3 \
--search-mode $4 \
--beam-size $5 \
--use-norm $6 \
--use-batch $7 \
--use-score $8 \
--use-valid $9 \
--valid-set nist02 \
--use-mv ${10} \
--merge-way ${11} \
--m-threshold ${12} \
--n-process 10 \
--ngram ${13} \
--length-norm ${14} \
--cover-penalty ${15} \
--workspace ${16}