|
|
|
@ -87,7 +87,7 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
|
|
|
|
|
ctc-prefix-beam-search-decoder-ol \
|
|
|
|
|
--feature_rspecifier=scp:$data/split${nj}/JOB/feat.scp \
|
|
|
|
|
--model_path=$model_dir/avg_1.jit.pdmodel \
|
|
|
|
|
--params_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--param_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--dict_file=$vocb_dir/vocab.txt \
|
|
|
|
|
--result_wspecifier=ark,t:$data/split${nj}/JOB/result
|
|
|
|
@ -102,7 +102,7 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
|
|
|
|
|
ctc-prefix-beam-search-decoder-ol \
|
|
|
|
|
--feature_rspecifier=scp:$data/split${nj}/JOB/feat.scp \
|
|
|
|
|
--model_path=$model_dir/avg_1.jit.pdmodel \
|
|
|
|
|
--params_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--param_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--dict_file=$vocb_dir/vocab.txt \
|
|
|
|
|
--lm_path=$lm \
|
|
|
|
@ -119,17 +119,18 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
|
pushd $wfst
|
|
|
|
|
wget -c https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/aishell_graph.zip
|
|
|
|
|
unzip aishell_graph.zip
|
|
|
|
|
mv aishell_graph/*
|
|
|
|
|
popd
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
graph_dir=$wfst/aishell_graph
|
|
|
|
|
graph_dir=$wfst/
|
|
|
|
|
|
|
|
|
|
# TLG decoder
|
|
|
|
|
utils/run.pl JOB=1:$nj $data/split${nj}/JOB/recog.wfst.log \
|
|
|
|
|
wfst-decoder-ol \
|
|
|
|
|
--feature_rspecifier=scp:$data/split${nj}/JOB/feat.scp \
|
|
|
|
|
--model_path=$model_dir/avg_1.jit.pdmodel \
|
|
|
|
|
--params_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--param_path=$model_dir/avg_1.jit.pdiparams \
|
|
|
|
|
--word_symbol_table=$graph_dir/words.txt \
|
|
|
|
|
--model_output_names=softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0 \
|
|
|
|
|
--graph_path=$graph_dir/TLG.fst --max_active=7500 \
|
|
|
|
|