-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_oracle_LG.sh
executable file
·69 lines (55 loc) · 1.74 KB
/
run_oracle_LG.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
#!/bin/bash
#
# Commands below are supposed to be run after run.sh.
#
echo "This shell script may run as-is on your system, but it is recommended
that you run the commands one by one by copying and pasting into the shell."
# exit 1
set -e
. ./cmd.sh
. ./path.sh
SBS_LANGUAGES="AR CA DT HG MD SW UR"
for L in $SBS_LANGUAGES; do
echo "Prep oracle G for $L"
local/sbs_format_oracle_LG.sh $L
done
# Decode with oracle G: mono
for L in $SBS_LANGUAGES; do
graph_dir=exp/mono/$L/graph_oracle_LG
mkdir -p $graph_dir
utils/mkgraph.sh --mono data/$L/lang_test_oracle_LG exp/mono \
$graph_dir >& $graph_dir/mkgraph.log
steps/decode.sh --nj 4 --cmd "$decode_cmd" $graph_dir data/$L/dev \
exp/mono/decode_dev_oracle_LG_$L &
done
wait
# Decode with oracle G: tri1
for L in $SBS_LANGUAGES; do
graph_dir=exp/tri1/$L/graph_oracle_LG
mkdir -p $graph_dir
utils/mkgraph.sh data/$L/lang_test_oracle_LG exp/tri1 \
$graph_dir >& $graph_dir/mkgraph.log
steps/decode.sh --nj 4 --cmd "$decode_cmd" $graph_dir data/$L/dev \
exp/tri1/decode_dev_oracle_LG_$L &
done
wait
# Decode with oracle G: tri2b
for L in $SBS_LANGUAGES; do
graph_dir=exp/tri2b/$L/graph_oracle_LG
mkdir -p $graph_dir
utils/mkgraph.sh data/$L/lang_test_oracle_LG exp/tri2b \
$graph_dir >& $graph_dir/mkgraph.log
steps/decode.sh --nj 4 --cmd "$decode_cmd" $graph_dir data/$L/dev \
exp/tri2b/decode_dev_oracle_LG_$L &
done
wait
# Decode with oracle G: tri3b
for L in $SBS_LANGUAGES; do
graph_dir=exp/tri3b/$L/graph_oracle_LG
mkdir -p $graph_dir
utils/mkgraph.sh data/$L/lang_test_oracle_LG exp/tri3b \
$graph_dir >& $graph_dir/mkgraph.log
steps/decode_fmllr.sh --nj 4 --cmd "$decode_cmd" $graph_dir data/$L/dev \
exp/tri3b/decode_dev_oracle_LG_$L &
done
wait