-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
451 lines (396 loc) · 18.6 KB
/
run.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
#!/usr/bin/env bash
lp_dataroot="/scratch/project_2006368/asr/dataroot/puhelahjat/puhelahjat/"
mfccdir=mfcc
stage=1
. ./cmd.sh
. ./path.sh
. parse_options.sh
# you might not want to do this for interactive shells.
set -e
# TODO: ADD DATA PREP HERE, from local/
if [ $stage -le 0 ]; then
local/textgrid_to_kaldi.py \
$lp_dataroot'/v1/*/alignments/*/*.TextGrid' \
data/all_aligned/
# Fix some utterances:
sed -i "s/\+//g" data/all_aligned/text
sed -i "s/hafþór/haftor/g" data/all_aligned/text
sed -i "s/ëttä/että/g" data/all_aligned/text
local/list-puhelahjat.sh
local/filter-dev-test.sh \
data/lp-dev-test-utt2spks/lp-test-utt2spk \
data/all_aligned \
data/lp-test
local/filter-dev-test.sh \
data/lp-dev-test-utt2spks/lp-dev-utt2spk \
data/all_aligned \
data/lp-dev
local/filter-dev-test.sh \
data/lp-dev-test-utt2spks/lp-test-multitranscriber-utt2spk \
data/all_aligned \
data/lp-test-multitranscriber
local/filter-dev-test.sh \
data/lp-dev-test-utt2spks/lp-test-multitranscriber-speakers-utt2spk \
data/all_aligned \
data/lp-test-multitranscriber-speakers
local/prep_eduskunta.sh
local/prep_eduskunta_dev_test.sh
fi
if [ $stage -le 1 ]; then
tmpdir=$(mktemp -d)
cat data/lp-dev/utt2spk data/lp-test/utt2spk \
data/lp-test-multitranscriber/utt2spk \
data/lp-test-multitranscriber-speakers/utt2spk \
> "$tmpdir"/all-lp-dev-test-utt2spk
utils/filter_scp.pl --exclude "$tmpdir"/all-lp-dev-test-utt2spk \
< data/all_aligned/utt2spk \
> "$tmpdir"/all-lp-train-utt2spk
utils/subset_data_dir.sh --utt-list "$tmpdir"/all-lp-train-utt2spk \
data/all_aligned/ data/lp-train-all
rm -rf "$tmpdir"
fi
if [ $stage -le 2 ]; then
for utt2spk in data/*/utt2spk; do
datadir=$(dirname $utt2spk)
utils/fix_data_dir.sh $datadir
done
fi
if [ $stage -le 3 ]; then
for part in lp-test lp-dev lp-train-all parl-2008-2020-train parl-dev-seen parl-dev-unseen parl-test-seen parl-test-unseen parl-test-2020; do
steps/make_mfcc.sh --cmd "$train_cmd --time 4:0:0" --nj 40 data/$part exp/make_mfcc/$part $mfccdir
steps/compute_cmvn_stats.sh data/$part exp/make_mfcc/$part $mfccdir
done
fi
if [ $stage -le 4 ]; then
utils/combine_data.sh \
data/train_all data/lp-train-all data/parl-2008-2020-train
utils/combine_data.sh \
data/dev_all data/lp-dev data/parl-dev-seen/ data/parl-dev-unseen/
utils/combine_data.sh \
data/parl-dev-all data/parl-dev-seen/ data/parl-dev-unseen/
utils/combine_data.sh \
data/parl-test-all data/parl-test-seen/ data/parl-test-unseen/
# Create a smaller, more manageable size dev set:
utils/subset_data_dir.sh data/dev_all 2000 data/dev_2k
fi
if [ $stage -le 5 ]; then
# Make some small data subsets for early system-build stages.
utils/subset_data_dir.sh --shortest data/train_all 4000 data/train_4kshort
utils/subset_data_dir.sh data/train_all 10000 data/train_10k
utils/subset_data_dir.sh data/train_all 20000 data/train_20k
utils/subset_data_dir.sh data/train_all 400000 data/train_400k
utils/subset_data_dir.sh data/train_all 2000000 data/train_2M
for dataname in train_4kshort train_10k train_20k train_400k train_2M; do
for letter in b c d f g q w x z å ".fp" ".br"; do
local/enforce_letter_in_data.sh --max_utt_to_add 10 data/train_all/ $letter data/$dataname
done
done
fi
exit
if [ $stage -le 6 ]; then
local/prepare_lexicon.sh \
--extra_texts "data/lp-dev/text data/parl-dev-seen/text data/parl-dev-unseen/text" \
data/train_all/ data/local/dict_train_all data/lang_train
fi
if [ $stage -le 7 ]; then
if [ ! -d subword-kaldi ]; then
echo "Need subword-kaldi, cloning"
git clone https://github.com/aalto-speech/subword-kaldi
fi
local/train_lm.sh \
--varikn_cmd "slurm.pl --mem 24G --time 2:0:0" \
--BPE_units 5000 \
--stage 0 \
--traindata data/train_all \
--validdata data/dev_all \
train data/lang_bpe.5000.varikn
fi
if [ $stage -le 8 ]; then
# train a monophone system
steps/train_mono.sh --boost-silence 1.25 --nj 20 --cmd "$train_cmd" \
data/train_4kshort data/lang_train exp/mono
fi
if [ $stage -le 9 ]; then
steps/align_si.sh --boost-silence 1.25 --nj 10 --cmd "$train_cmd" \
data/train_10k data/lang_train exp/mono exp/mono_ali_10k
# train a first delta + delta-delta triphone system on a subset of 5000 utterances
steps/train_deltas.sh --boost-silence 1.25 --cmd "$train_cmd" \
2000 10000 data/train_10k data/lang_train exp/mono_ali_10k exp/tri1
fi
if [ $stage -le 10 ]; then
steps/align_si.sh --nj 10 --cmd "$train_cmd" \
data/train_20k data/lang_train exp/tri1 exp/tri1_ali_20k
# train an LDA+MLLT system.
steps/train_lda_mllt.sh --cmd "$train_cmd" \
--splice-opts "--left-context=3 --right-context=3" 2500 15000 \
data/train_20k data/lang_train exp/tri1_ali_20k exp/tri2b
fi
if [ $stage -le 11 ]; then
# Align a 20k utts subset using the tri2b model
steps/align_si.sh --nj 10 --cmd "$train_cmd" --use-graphs true \
data/train_20k data/lang_train exp/tri2b exp/tri2b_ali_20k
# Train tri3b, which is LDA+MLLT+SAT on 20k utts
steps/train_sat.sh --cmd "$train_cmd" 2500 15000 \
data/train_20k data/lang_train exp/tri2b_ali_20k exp/tri3b
fi
if [ $stage -le 12 ]; then
steps/align_fmllr.sh --nj 20 --cmd "$train_cmd" \
data/train_400k data/lang_train \
exp/tri3b exp/tri3b_ali_400k
# train another LDA+MLLT+SAT system on the entire 100 hour subset
steps/train_sat.sh --cmd "$train_cmd" 4200 40000 \
data/train_400k data/lang_train \
exp/tri3b_ali_400k exp/tri4b
fi
if [ $stage -le 16 ]; then
steps/align_fmllr.sh --nj 120 --cmd "$train_cmd --time 4:0:0" \
data/train_2M data/lang_train exp/tri4b exp/tri4b_ali_2M
steps/train_sat.sh --cmd "$train_cmd" 10000 200000 \
data/train_2M data/lang_train exp/tri4b_ali_2M exp/tri5b
fi
if [ $stage -le 18 ]; then
# NOTE: on CSC hardware, splitting train_all into 180 pieces
# results in "Out of memory!".
# I ran it manually with:
# > source path.sh
# > srun --mem 20G --gres=nvme:20 --time 1:0:0 -c4 \
# > --account project_2006368 split_data.sh data/train_all 180
steps/align_fmllr.sh --nj 180 --cmd "$train_cmd --mem 4G --time 4:0:0" \
data/train_all data/lang_train exp/tri5b exp/tri5b_ali_all
steps/train_quick.sh --cmd "$train_cmd --mem 4G" \
12000 300000 data/train_all data/lang_train exp/tri5b_ali_all exp/tri6b
fi
if [ $stage -le 19 ]; then
$mkgraph_cmd --mem 16G exp/tri6b/graph_bpe.5000.varikn/log/mkgraph.log utils/mkgraph.sh \
data/lang_bpe.5000.varikn/ exp/tri6b/ exp/tri6b/graph_bpe.5000.varikn
steps/decode_fmllr.sh --cmd "$decode_cmd" --nj 8 \
exp/tri6b/graph_bpe.5000.varikn data/dev_all exp/tri6b/decode_dev_all_bpe.5000.varikn
exit
fi
if [ $stage -le 20 ]; then
steps/align_fmllr.sh --nj 180 --cmd "$train_cmd --mem 4G --time 4:0:0" \
data/train_all data/lang_train exp/tri6b exp/tri6b_ali_all
steps/align_fmllr.sh --nj 8 --cmd "$train_cmd" \
data/dev_2k data/lang_train exp/tri6b exp/tri6b_ali_dev_2k
fi
if [ $stage -le 21 ]; then
# Create a version of the lang/ directory that has one state per phone in the
# topo file. [note, it really has two states.. the first one is only repeated
# once, the second one has zero or more repeats.]
if [ -d data/lang_chain ]; then
if [ data/lang_chain/L.fst -nt data/lang_train/L.fst ]; then
echo "$0: data/lang_chain already exists, not overwriting it; continuing"
else
echo "$0: data/lang_chain already exists and seems to be older than data/lang_train..."
echo " ... not sure what to do. Exiting."
exit 1;
fi
else
cp -r data/lang_train data/lang_chain
silphonelist=$(cat data/lang_chain/phones/silence.csl) || exit 1;
nonsilphonelist=$(cat data/lang_chain/phones/nonsilence.csl) || exit 1;
# Use our special topology... note that later on may have to tune this
# topology.
steps/nnet3/chain/gen_topo.py $nonsilphonelist $silphonelist >data/lang_chain/topo
fi
fi
if [ $stage -le 22 ]; then
local/chain/build_new_tree.sh \
--traindata data/train_all \
--trainali exp/tri6b_ali_all \
--validali exp/tri6b_ali_dev_2k \
--num_leaves 4000 \
exp/chain/tree
fi
if [ $stage -le 23 ]; then
srun --mem 24G --time 2-0:0:0 -c 16 --account project_2006368 \
local/chain/make_shards.py 180 shards/train_all \
--num-proc 16 \
--segments data/train_all/split180/JOB/segments \
data/train_all/split180/JOB/wav.scp \
--text data/train_all/split180/JOB/text \
--aliark "gunzip -c exp/chain/tree/ali.JOB.gz | ali-to-pdf exp/chain/tree/final.mdl ark:- ark:- |"
srun --mem 6G --time 12:0:0 -c 2 --account project_2006368 \
local/chain/make_shards.py 8 shards/dev_2k \
--num-proc 2 \
--segments data/dev_2k/split8/JOB/segments \
data/dev_2k/split8/JOB/wav.scp \
--text data/dev_2k/split8/JOB/text \
--aliark "gunzip -c exp/chain/tree/ali.valid.JOB.gz | ali-to-pdf exp/chain/tree/final.mdl ark:- ark:- |"
fi
if [ $stage -le 24 ]; then
local/chain/prepare_graph_clustered.sh \
--trainset train_all \
--validset dev_2k
fi
if [ $stage -le 25 ]; then
sbatch local/chain/run_training.sh
exit
fi
if [ $stage -le 26 ]; then
$mkgraph_cmd --mem 16G exp/chain/graph/graph_bpe.5000.varikn/log/mkgraph.log utils/mkgraph.sh \
--self-loop-scale 1.0 \
data/lang_bpe.5000.varikn/ exp/chain/tree exp/chain/graph/graph_bpe.5000.varikn
fi
if [ $stage -le 27 ]; then
local/chain/decode.sh --datadir data/lp-dev/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA.yaml \
--decodedir "exp/chain/CRDNN-AA/2602-2856units/decode_lp-dev_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-dev-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA.yaml \
--decodedir "exp/chain/CRDNN-AA/2602-2856units/decode_parl-dev-all_bpe.5000.varikn_acwt1.5"
fi
if [ $stage -le 28 ]; then
sbatch local/chain/run_training.sh --hparams hyperparams/chain/CRDNN-AA-contd.yaml
exit
fi
if [ $stage -le 29 ]; then
local/chain/decode.sh --datadir data/lp-dev/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-dev_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-dev-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-dev-all_bpe.5000.varikn_acwt1.5"
fi
if [ $stage -le 30 ]; then
# Train Subset LMs:
local/train_lm.sh \
--varikn_cmd "slurm.pl --mem 24G --time 2:0:0" \
--BPE_units 5000 \
--stage 0 \
--traindata data/parl-2008-2020-train/ \
--validdata data/parl-dev-all \
train_parl data/lang_parl_bpe.5000.varikn
local/train_lm.sh \
--varikn_cmd "slurm.pl --mem 24G --time 2:0:0" \
--BPE_units 5000 \
--stage 0 \
--traindata data/lp-train-all \
--validdata data/lp-dev \
train_lp data/lang_lp_bpe.5000.varikn
fi
if [ $stage -le 31 ]; then
local/chain/decode.sh --datadir data/dev_all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_dev_all_bpe.5000.varikn_acwt1.5"
fi
if [ $stage -le 32 ]; then
$mkgraph_cmd --mem 16G exp/chain/graph/graph_parl_bpe.5000.varikn/log/mkgraph.log utils/mkgraph.sh \
--self-loop-scale 1.0 \
data/lang_parl_bpe.5000.varikn/ exp/chain/tree exp/chain/graph/graph_parl_bpe.5000.varikn
$mkgraph_cmd --mem 16G exp/chain/graph/graph_lp_bpe.5000.varikn/log/mkgraph.log utils/mkgraph.sh \
--self-loop-scale 1.0 \
data/lang_lp_bpe.5000.varikn/ exp/chain/tree exp/chain/graph/graph_lp_bpe.5000.varikn
fi
if [ $stage -le 33 ]; then
local/chain/decode.sh --datadir data/parl-test-2020/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-2020_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-test-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_bpe.5000.varikn/ \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-all_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/lp-test/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-test_bpe.5000.varikn_acwt1.5"
fi
if [ $stage -le 34 ]; then
local/chain/decode.sh --datadir data/parl-dev-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-dev-all_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-dev-all_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/lp-dev/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-dev_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-dev_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-dev-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-dev-all_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-dev-all_lp_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/lp-dev/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-dev_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-dev_lp_bpe.5000.varikn_acwt1.5"
fi
if [ $stage -le 35 ]; then
local/chain/decode.sh --datadir data/parl-test-2020/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-2020_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-2020_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-test-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-all_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-all_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/lp-test/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-test_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-test_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-test-2020/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-2020_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-2020_lp_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/parl-test-all/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-all_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_parl-test-all_lp_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/lp-test/ \
--acwt 1.5 --post-decode-acwt 15.0 \
--stage 2 --posteriors_from exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-test_bpe.5000.varikn_acwt1.5/ \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_lp-test_lp_bpe.5000.varikn_acwt1.5"
fi
# MFCCs are not needed
# We downloaded YLE Test New from our group's archive;
# but it is not available publicly unfortunately
#if [ $stage -le 36 ]; then
# steps/make_mfcc.sh --cmd "$train_cmd --time 4:0:0" --nj 8 data/yle-test-new exp/make_mfcc/yle-test-new $mfccdir
# steps/compute_cmvn_stats.sh data/yle-test-new
#fi
if [ $stage -le 37 ]; then
local/chain/decode.sh --datadir data/yle-test-new \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd//2602-2856units/decode_yle-test-new_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/yle-test-new \
--stage 2 --posteriors_from "exp/chain/CRDNN-AA-contd//2602-2856units/decode_yle-test-new_bpe.5000.varikn_acwt1.5" \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_parl_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd/2602-2856units/decode_yle-test-new_parl_bpe.5000.varikn_acwt1.5"
local/chain/decode.sh --datadir data/yle-test-new \
--stage 2 --posteriors_from "exp/chain/CRDNN-AA-contd//2602-2856units/decode_yle-test-new_bpe.5000.varikn_acwt1.5" \
--acwt 1.5 --post-decode-acwt 15.0 \
--hparams hyperparams/chain/CRDNN-AA-contd.yaml \
--graphdir exp/chain/graph/graph_lp_bpe.5000.varikn \
--decodedir "exp/chain/CRDNN-AA-contd/2602-2856units/decode_yle-test-new_lp_bpe.5000.varikn_acwt1.5"
fi