forked from sequitur-g2p/sequitur-g2p
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-g2p.sh
executable file
·61 lines (51 loc) · 1.28 KB
/
test-g2p.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
#!/bin/bash
#$ -S /bin/bash
#$ -m e
#$ -N g2p-test
#$ -l arch=glinux
#$ -l mem_free=1G
#$ -cwd
. ~/.environment
set -e
bin=tmp-test-install/bin
export PYTHONPATH=tmp-test-install/lib/python2.4/site-packages
g2p=./g2p.py
series=test-g2p
target=tmp-test-result
train=~/sr/g2p/databases/celex-en/train-10000-sample.lex
train=$(tempfile)
head -5000 ~/sr/g2p/databases/celex-en/train-10000-sample.lex >$train
test=$(tempfile)
tail -100 ~/sr/g2p/databases/celex-en/train-10000-sample.lex >$test
mkdir -p $target
cp $0 $target
for M in 1 2 3 4 5 ; do
if [ $M -gt 1 ]; then
init="
--model $target/$series-M$[$M-1].pic
--ramp-up "
else
init=""
fi
# mpatrol \
# --dynamic \
# --prof \
# --prof-file $target/mpatrol-M$M.mprof \
python $g2p $init \
--train $train \
--checkpoint \
--devel 5% \
--test $test \
--continuous-test \
--write-model $target/$series-M$M.pic \
--self-test \
> $target/$series-M$M-train.log
# --size-constraints 0,4,0,4 \
# --profile $series-M$M-train.profile \
# $g2p \
# --model $series-M$M.pic \
# --test $test \
# --profile $series-M$M-test.profile \
# --result $series-M$M-test.tab \
# > $series-M$M-test.log
done