Views
No views yet
| decoding mode | full | 18 | 16 |
|---|---|---|---|
| attention decoder | 4.99 | 5.13 | 5.16 |
| ctc prefix beam search | 4.98 | 5.23 | 5.23 |
| attention rescoring | 4.64 | 4.86 | 4.85 |
1cd wenet/examples/aishell/s0
2dir=exp/wenet_efficient_conformer_aishell_v1/
3
4ctc_weight=0.5
5reverse_weight=0.3
6decoding_chunk_size=-1
7mode="attention_rescoring"
8
9test_dir=$dir/test_${mode}
10mkdir -p $test_dir
11
12# Decode
13nohup python wenet/bin/recognize.py --gpu 0 \
14 --mode $mode \
15 --config $dir/train.yaml \
16 --data_type "raw" \
17 --test_data data/test/data.list \
18 --checkpoint $dir/final.pt \
19 --beam_size 10 \
20 --batch_size 1 \
21 --penalty 0.0 \
22 --dict $dir/words.txt \
23 --ctc_weight $ctc_weight \
24 --reverse_weight $reverse_weight \
25 --result_file $test_dir/text \
26 ${decoding_chunk_size:+--decoding_chunk_size $decoding_chunk_size} > logs/decode_aishell.log &
27
28# CER
29python tools/compute-cer.py --char=1 --v=1 \
30 data/test/text $test_dir/text > $test_dir/cer.txt