1#!/bin/sh 2. ./testfuncs.sh 3 4tmpout="test-decode-lts.out" 5 6echo "DECODE LTS 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-maxhmmpf 1500 \ 31-wend_beam 1e-1 \ 32-ci_pbeam 1e-5 \ 33-ds 2 \ 34-tighten_factor 0.4 \ 35-lts_mismatch 1 " 36 37lmargs="-lm $an4lm/an4.ug.lm.DMP" 38 39clsargs="-lmctlfn $an4lm/an4.ug.cls.lmctl \ 40-ctl_lm $an4lm/an4.ctl_lm" 41 42rm -f $tmpout 43 44run_program sphinx3_decode $margs $lmargs > $tmpout 2>&1 45grep "FWDVIT" $tmpout 46grep "FWDXCT" $tmpout 47 48if grep "FWDVIT" $tmpout |grep "P I T T S B U R G H" > /dev/null 2>&1; then 49 pass "DECODE LTS test" 50else 51 fail "DECODE LTS test" 52fi 53 54 55 56