1#!/bin/sh 2. ./testfuncs.sh 3 4tmpout="test-decode-mode1.out" 5 6echo "MODE1 DECODE TEST" 7 8margs="-logbase 1.0003 \ 9-hmm $hub4am \ 10-pbeam 1e-30 \ 11-feat 1s_c_d_dd \ 12-dict $an4lm/an4.phone.dict \ 13-fdict $an4lm/filler.dict \ 14-ctl $an4lm/an4.ctl \ 15-ctlcount 1 \ 16-outlatdir . \ 17-phsegdir . \ 18-cepdir $an4lm/" 19 20lmargs="-lm $an4lm/an4.tg.phone.arpa.DMP " 21 22rm -f $tmpout 23rm -f test-decode-mode1.match 24 25run_program sphinx3_decode -op_mode 1 $margs -hyp test-decode-mode1.match \ 26 >> $tmpout 2>&1 27 28filebase=`head -1 $an4lm/an4.ctl` 29compare_table "MODE1 LOOP match test" test-decode-mode1.match \ 30 $hub4am/test.allphone.match 31 32rm -f test-decode-mode1-tg.match 33 34run_program sphinx3_decode -op_mode 1 $margs $lmargs -hyp test-decode-mode1-tg.match \ 35 >> $tmpout 2>&1 36 37compare_table "MODE1 TG match test" test-decode-mode1-tg.match \ 38 $hub4am/test.allphone.phone_tg.match 39 40echo "MODE1 BESTPATH TG match test" 41run_program sphinx3_decode -op_mode 1 $margs $lmargs -bestpath yes \ 42 >> $tmpout 2>&1 43 44