1#!/bin/sh 2. ./testfuncs.sh 3 4tmpout="test-decode-noncomp.out" 5 6echo "DECODE NON-COMPOSITE TEST" 7echo "YOU SHOULD SEE THE RECOGNITION RESULT 'P I T T S B U R G H'" 8 9margs="-mdef $hub4am/mdef \ 10-fdict $an4lm/filler.dict \ 11-dict $an4lm/an4.dict \ 12-mean $hub4am/means \ 13-var $hub4am/variances \ 14-mixw $hub4am/mixture_weights \ 15-tmat $hub4am/transition_matrices \ 16-ctl $an4lm/an4.ctl \ 17-cepdir $an4lm/ \ 18-agc none \ 19-varnorm no \ 20-cmn current \ 21-subvqbeam 1e-02 \ 22-epl 4 \ 23-fillprob 0.02 \ 24-feat 1s_c_d_dd \ 25-lw 9.5 \ 26-maxwpf 1 \ 27-beam 1e-40 \ 28-pbeam 1e-30 \ 29-wbeam 1e-20 \ 30-wend_beam 1e-1 \ 31-ci_pbeam 1e-5 \ 32-ds 2 \ 33-tighten_factor 0.4 \ 34-composite 0" 35 36lmargs="-lm $an4lm/an4.ug.lm.DMP" 37 38clsargs="-lmctlfn $an4lm/an4.ug.cls.lmctl \ 39-ctl_lm $an4lm/an4.ctl_lm" 40 41run_program sphinx3_decode $margs $lmargs > $tmpout 2>&1 42grep "FWDVIT" $tmpout 43grep "FWDXCT" $tmpout 44 45if grep "FWDVIT" $tmpout |grep "P I T T S B U R G H" > /dev/null 2>&1; then 46 pass "DECODE NON-COMPOSITE test" 47else 48 fail "DECODE NON-COMPOSITE test" 49fi 50 51 52 53