From ffcac294ea46b7e76323890244b05174d69281fc Mon Sep 17 00:00:00 2001 From: Pegita Date: Thu, 14 Apr 2016 18:45:05 -0400 Subject: [PATCH 1/3] changed beam to 11 and added online decoding results to 6v_sp script. --- egs/swbd/s5c/conf/decode_online.config | 2 +- egs/swbd/s5c/local/chain/run_tdnn_6v.sh | 105 +++++++++++++----------- 2 files changed, 57 insertions(+), 50 deletions(-) diff --git a/egs/swbd/s5c/conf/decode_online.config b/egs/swbd/s5c/conf/decode_online.config index 1c6329c020d..410ca63c28b 100644 --- a/egs/swbd/s5c/conf/decode_online.config +++ b/egs/swbd/s5c/conf/decode_online.config @@ -1,2 +1,2 @@ -beam=15.0 # beam for decoding. Was 13.0 in the scripts. +beam=11.0 # beam for decoding. first_beam=8.0 # beam for 1st-pass decoding in SAT. diff --git a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh index 00a24eb451b..34ff9f257d9 100755 --- a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh +++ b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh @@ -1,5 +1,5 @@ #!/bin/bash - +# This script contain online decoding. # _6v is as _6h, but moving to a TDNN+ReLU recipe instead of using jesus-layer. # Otherwise we make everything as similar as possible to 6h. # The ReLU dimension, at 576, is chosen to make the number of parameters about @@ -30,7 +30,7 @@ stage=12 train_stage=-10 get_egs_stage=-10 speed_perturb=true -dir=exp/chain/tdnn_6v # Note: _sp will get added to this if $speed_perturb == true. +dir=exp/chain_online/tdnn_6v # Note: _sp will get added to this if $speed_perturb == true. decode_iter= # TDNN options @@ -224,53 +224,60 @@ 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 - +# Results using offline and online decoding +# System 6v_sp 6v_sp_online 6v_sp_online{per_utt} +# WER on train_dev(tg) 14.68 14.72 15.43 +# WER on train_dev(fg) 13.49 13.58 14.18 +# WER on eval2000(tg) 17.2 17.3 18.2 +# WER on eval2000(fg) 15.7 15.9 16.7 + +#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; From d4e1215449701ba6effcccf7d9fd0774c4fece1c Mon Sep 17 00:00:00 2001 From: Pegita Date: Thu, 14 Apr 2016 18:48:37 -0400 Subject: [PATCH 2/3] small fix --- egs/swbd/s5c/local/chain/run_tdnn_6v.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh index 34ff9f257d9..1247e8adcb4 100755 --- a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh +++ b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh @@ -1,5 +1,5 @@ #!/bin/bash -# This script contain online decoding. +# This script contains online decoding using chain + nnet3 setup. # _6v is as _6h, but moving to a TDNN+ReLU recipe instead of using jesus-layer. # Otherwise we make everything as similar as possible to 6h. # The ReLU dimension, at 576, is chosen to make the number of parameters about From b4cc8295132d6e90de6ce279286e4c7af8b5fbf1 Mon Sep 17 00:00:00 2001 From: Pegita Date: Thu, 14 Apr 2016 18:49:20 -0400 Subject: [PATCH 3/3] small fix --- egs/swbd/s5c/local/chain/run_tdnn_6v.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh index 1247e8adcb4..df711d31aa1 100755 --- a/egs/swbd/s5c/local/chain/run_tdnn_6v.sh +++ b/egs/swbd/s5c/local/chain/run_tdnn_6v.sh @@ -30,7 +30,7 @@ stage=12 train_stage=-10 get_egs_stage=-10 speed_perturb=true -dir=exp/chain_online/tdnn_6v # Note: _sp will get added to this if $speed_perturb == true. +dir=exp/chain/tdnn_6v # Note: _sp will get added to this if $speed_perturb == true. decode_iter= # TDNN options