From 945c3ba606d6b315bc67282f170d9a76f728938c Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Tue, 15 Nov 2022 20:45:53 +0800 Subject: [PATCH] fix decode bug, test=doc (#2655) --- speechx/examples/u2pp_ol/wenetspeech/local/decode.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/speechx/examples/u2pp_ol/wenetspeech/local/decode.sh b/speechx/examples/u2pp_ol/wenetspeech/local/decode.sh index 068f34a0..059ed1b3 100755 --- a/speechx/examples/u2pp_ol/wenetspeech/local/decode.sh +++ b/speechx/examples/u2pp_ol/wenetspeech/local/decode.sh @@ -9,6 +9,7 @@ nj=20 mkdir -p $exp ckpt_dir=./data/model model_dir=$ckpt_dir/asr1_chunk_conformer_u2pp_wenetspeech_static_1.3.0.model/ +text=$data/test/text utils/run.pl JOB=1:$nj $data/split${nj}/JOB/decoder.log \ ctc_prefix_beam_search_decoder_main \ @@ -20,6 +21,6 @@ ctc_prefix_beam_search_decoder_main \ --feature_rspecifier=scp:$data/split${nj}/JOB/fbank.scp \ --result_wspecifier=ark,t:$data/split${nj}/JOB/result_decode.ark -cat $data/split${nj}/*/result_decode.ark > $exp/${label_file} -utils/compute-wer.py --char=1 --v=1 $text $exp/${label_file} > $exp/${wer} -tail -n 7 $exp/${wer} \ No newline at end of file +cat $data/split${nj}/*/result_decode.ark > $exp/aishell.decode.rsl +utils/compute-wer.py --char=1 --v=1 $text $exp/aishell.decode.rsl > $exp/aishell.decode.err +tail -n 7 $exp/aishell.decode.err \ No newline at end of file