Initial import to Tizen
[profile/ivi/pocketsphinx.git] / test / regression / test-hub4-cards.sh
1 #!/bin/sh
2
3 . ../testfuncs.sh
4
5 bn=`basename $0 .sh`
6
7 echo "Test: $bn"
8 run_program pocketsphinx_batch \
9     -hmm $model/hmm/en_US/hub4wsj_sc_8k \
10     -jsgf $data/cards/cards.gram \
11     -dict $model/lm/en_US/cmu07a.dic \
12     -ctl $data/cards/cards.fileids \
13     -adcin yes \
14     -cepdir $data/cards \
15     -cepext .wav \
16     -hyp $bn.match \
17     -backtrace yes \
18     > $bn.log 2>&1
19
20 # Test whether it actually completed
21 if [ $? = 0 ]; then
22     pass "run"
23 else
24     fail "run"
25 fi
26
27 # Check the decoding results
28 grep AVERAGE $bn.log
29 $tests/word_align.pl -i $data/cards/cards.transcription $bn.match | grep 'TOTAL Percent'
30 compare_table "match" $data/cards/cards.hyp $bn.match 1000000