04d_train_MMI_FMMI_LIA.sh 2.5 KB
#!/bin/bash


EXPE_DIR=$1  
. ../LIA_kaldiUtils/path.sh
. ../LIA_kaldiUtils/cmd.sh
LM_DIR=$EXPE_DIR/LANGUAGE_MODEL
LM_DATA=$EXPE_DIR/ling_Data/ 
AM_DIR=$EXPE_DIR/ACOUSTIC_MODEL 
AM_DATA=$EXPE_DIR/ac_Data/           

FORK=8 


# TODO : 
#	- AM : quinphones, MLP ....
#	- LM : perplexity on dev, native 4g, rnnLM

# MMI ---> 22.15




steps/make_denlats.sh --nj 20 --sub-split 20 --transform-dir $AM_DIR/tri3b_ali $AM_DIR $LM_DIR  $AM_DIR/tri3b  $AM_DIR/tri3b_denlats || exit 1;


#step/train_mmi.sh --boost 0.1 data/train lang exp/tri3b_ali exp/tri3b_denlats exp/tri3b_mmi_b0.1  || exit 1;
steps/train_mmi.sh --boost 0.1 $AM_DIR  $LM_DIR $AM_DIR/tri3b_ali $AM_DIR/tri3b_denlats $AM_DIR/tri3b_mmi_b0.1  || exit 1;

exit

#steps/decode.sh --nj 6 --transform-dir exp/tri3b/decode_dev exp/tri3b/graph data/dev exp/tri3b_mmi_b0.1/decode_dev
steps/decode.sh --nj 6 --transform-dir $AM_DIR/tri3b/decode_dev $AM_DIR/tri3b/graph $EXPE_DIR/TEST/ac_Data $AM_DIR/tri3b_mmi_b0.1/decode_dev

first, train UBM for fMMI experiments.
#steps/train_diag_ubm.sh --silence-weight 0.5 --nj 20 600 data/train lang exp/tri3b_ali exp/dubm3b
steps/train_diag_ubm.sh --silence-weight 0.5 --nj 20 600 $AM_DIR $LM_DIR $AM_DIR/tri3b_ali $AM_DIR/dubm3b

# fMMI+MMI ---> 21.15
#steps/train_mmi_fmmi.sh --boost 0.1 data/train lang exp/tri3b_ali exp/dubm3b exp/tri3b_denlats exp/tri3b_fmmi_a || exit 1;
steps/train_mmi_fmmi.sh --boost 0.1 $AM_DIR $LM_DIR  $AM_DIR/tri3b_ali $AM_DIR/dubm3b $AM_DIR/tri3b_denlats $AM_DIR/tri3b_fmmi_a || exit 1;

for iter in 3 4 5 6 7 8; do
	#steps/decode_fmmi.sh --nj 6  --iter $iter --transform-dir exp/tri3b/decode_dev  exp/tri3b/graph data/dev  exp/tri3b_fmmi_a/decode_dev_it$iter
	steps/decode_fmmi.sh --nj 6  --iter $iter --transform-dir $AM_DIR/tri3b/decode_dev  $AM_DIR/tri3b/graph $EXPE_DIR/TEST/ac_Data  $AM_DIR/tri3b_fmmi_a/decode_dev_it$iter
done

# fMMI + mmi with indirect differential ---> 20.65
#steps/train_mmi_fmmi_indirect.sh --boost 0.1 data/train lang exp/tri3b_ali exp/dubm3b exp/tri3b_denlats exp/tri3b_fmmi_indirect || exit 1;
steps/train_mmi_fmmi_indirect.sh --boost 0.1 $AM_DIR $LM_DIR $AM_DIR/tri3b_ali $AM_DIR/dubm3b $AM_DIR/tri3b_denlats $AM_DIR/tri3b_fmmi_indirect || exit 1;

for iter in 3 4 5 6 7 8; do
 #steps/decode_fmmi.sh --nj 6  --iter $iter --transform-dir exp/tri3b/decode_dev  exp/tri3b/graph data/dev exp/tri3b_fmmi_indirect/decode_dev_it$iter
 steps/decode_fmmi.sh --nj 6  --iter $iter --transform-dir $AM_DIR/tri3b/decode_dev  $AM_DIR/tri3b/graph $EXPE_DIR/TEST/ac_Data $AM_DIR/tri3b_fmmi_indirect/decode_dev_it$iter
done