Skip to content

Commit

Permalink
Merge pull request #2 from pegahgh/chain-online-nnet3
Browse files Browse the repository at this point in the history
modified run_tdnn_6v.sh by appending online decoding.
  • Loading branch information
realill committed Apr 13, 2016
2 parents 461746a + 682e3ba commit 4b5f8ce
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions egs/swbd/s5c/conf/decode_online.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
beam=15.0 # beam for decoding. Was 13.0 in the scripts.
first_beam=8.0 # beam for 1st-pass decoding in SAT.
49 changes: 49 additions & 0 deletions egs/swbd/s5c/local/chain/run_tdnn_6v.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,54 @@ if [ $stage -le 14 ]; then
) &
done
fi

if [ $stage -le 15 ]; then
# If this setup used PLP features, we'd have to give the option --feature-type plp
# to the script below.
steps/online/nnet3/prepare_online_decoding.sh --mfcc-config conf/mfcc_hires.conf \
data/lang exp/nnet3/extractor "$dir" ${dir}_online || exit 1;
fi



if [ $stage -le 16 ]; then
iter_opts=
if [ ! -z $decode_iter ]; then
iter_opts=" --iter $decode_iter "
fi
for decode_set in train_dev eval2000; do
(
steps/online/nnet3/decode.sh --acwt 1.0 --post-decode-acwt 10.0 \
--nj 50 --cmd "$decode_cmd" $iter_opts --config conf/decode_online.config \
$graph_dir data/${decode_set}_hires ${dir}_online/decode_${decode_set}${decode_iter:+_$decode_iter}_${decode_suff} || exit 1;
if $has_fisher; then
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_sw1_{tg,fsh_fg} data/${decode_set}_hires \
${dir}_online/decode_${decode_set}${decode_iter:+_$decode_iter}_sw1_{tg,fsh_fg} || exit 1;
fi
) &
done
fi

if [ $stage -le 17 ]; then
iter_opts=
if [ ! -z $decode_iter ]; then
iter_opts=" --iter $decode_iter "
fi
for decode_set in train_dev eval2000; do
(
steps/online/nnet3/decode.sh --acwt 1.0 --post-decode-acwt 10.0 --config conf/decode_online.config \
--nj 50 --cmd "$decode_cmd" $iter_opts --per-utt true \
$graph_dir data/${decode_set}_hires ${dir}_online/decode_${decode_set}${decode_iter:+_$decode_iter}_${decode_suff}_per_utt || exit 1;
if $has_fisher; then
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_sw1_{tg,fsh_fg} data/${decode_set}_hires \
${dir}_online/decode_${decode_set}${decode_iter:+_$decode_iter}_sw1_{tg,fsh_fg}_per_utt || exit 1;
fi
) &
done
fi

wait;

exit 0;

0 comments on commit 4b5f8ce

Please sign in to comment.