test-wsj5k-fwdtree.sh
来自「WinCE平台上的语音识别程序」· Shell 代码 · 共 31 行
SH
31 行
#!/bin/sh. ../testfuncs.shbn=`basename $0 .sh`echo "Test: $bn"run_program pocketsphinx_batch \ -hmm $model/hmm/wsj0 \ -lm $data/wsj/wlist5o.nvp.lm.DMP \ -dict $data/wsj/wlist5o.nvp.dict \ -ctl $data/wsj/test5k.s1.ctl \ -cepdir $data/wsj \ -hyp $bn.match \ -fwdtree TRUE \ -fwdflat FALSE \ -bestpath FALSE \ > $bn.log 2>&1# Test whether it actually completedif [ $? = 0 ]; then pass "run"else fail "run"fi# Check the decoding resultsgrep AVERAGE $bn.log$tests/word_align.pl -i $data/wsj/test5k.s1.lsn $bn.match | grep 'TOTAL Percent'compare_table "match" $data/wsj/$bn.match $bn.match
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?