|
|
|
@ -90,11 +90,13 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
|
|
|
|
|
--param_path=$model_dir/avg_5.jit.pdiparams \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--nnet_decoder_chunk=8 \
|
|
|
|
|
--dict_file=$vocb_dir/vocab.txt \
|
|
|
|
|
--result_wspecifier=ark,t:$data/split${nj}/JOB/result_fbank
|
|
|
|
|
|
|
|
|
|
cat $data/split${nj}/*/result_fbank > $exp/${label_file}
|
|
|
|
|
utils/compute-wer.py --char=1 --v=1 $text $exp/${label_file} > $exp/${wer}
|
|
|
|
|
tail -n 7 $exp/${wer}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
|
|
|
|
@ -105,13 +107,15 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
|
|
|
|
|
--model_path=$model_dir/avg_5.jit.pdmodel \
|
|
|
|
|
--param_path=$model_dir/avg_5.jit.pdiparams \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--nnet_decoder_chunk=8 \
|
|
|
|
|
--dict_file=$vocb_dir/vocab.txt \
|
|
|
|
|
--lm_path=$lm \
|
|
|
|
|
--result_wspecifier=ark,t:$data/split${nj}/JOB/fbank_result_lm
|
|
|
|
|
|
|
|
|
|
cat $data/split${nj}/*/fbank_result_lm > $exp/${label_file}_lm
|
|
|
|
|
utils/compute-wer.py --char=1 --v=1 $text $exp/${label_file}_lm > $exp/${wer}.lm
|
|
|
|
|
tail -n 7 $exp/${wer}.lm
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
wfst=$data/wfst_fbank/
|
|
|
|
@ -135,7 +139,8 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
|
--param_path=$model_dir/avg_5.jit.pdiparams \
|
|
|
|
|
--word_symbol_table=$wfst/words.txt \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--nnet_decoder_chunk=8 \
|
|
|
|
|
--graph_path=$wfst/TLG.fst --max_active=7500 \
|
|
|
|
|
--acoustic_scale=1.2 \
|
|
|
|
|
--result_wspecifier=ark,t:$data/split${nj}/JOB/result_tlg
|
|
|
|
@ -144,6 +149,7 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
|
utils/compute-wer.py --char=1 --v=1 $text $exp/${label_file}_tlg > $exp/${wer}.tlg
|
|
|
|
|
echo "wfst-decoder-ol have finished!!!"
|
|
|
|
|
echo "please checkout in ${exp}/${wer}.tlg"
|
|
|
|
|
tail -n 7 $exp/${wer}.tlg
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then
|
|
|
|
@ -157,6 +163,7 @@ if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then
|
|
|
|
|
--word_symbol_table=$wfst/words.txt \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--model_cache_shapes="5-1-2048,5-1-2048" \
|
|
|
|
|
--nnet_decoder_chunk=8 \
|
|
|
|
|
--graph_path=$wfst/TLG.fst --max_active=7500 \
|
|
|
|
|
--acoustic_scale=1.2 \
|
|
|
|
|
--result_wspecifier=ark,t:$data/split${nj}/JOB/result_fbank_recognizer
|
|
|
|
@ -165,4 +172,5 @@ if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then
|
|
|
|
|
utils/compute-wer.py --char=1 --v=1 $text $exp/${label_file}_recognizer > $exp/${wer}.recognizer
|
|
|
|
|
echo "recognizer test have finished!!!"
|
|
|
|
|
echo "please checkout in ${exp}/${wer}.recognizer"
|
|
|
|
|
tail -n 7 $exp/${wer}.recognizer
|
|
|
|
|
fi
|
|
|
|
|