Related pages

Friday, February 1, 2008

STEP 7 Fixing The Silence Model

First copy the contents of the hmm3 folder to hmm4
Then using an editor, create new "sp" model in hmm4/hmmdefs as follows:

copy and paste the “sil” model and rename the new one "sp"

remove state 2 and 4 from new “sp” model (i.e. keep 'centre state' of old “sil” model in new "sp" model )

change numstates to 3

change states to 2

change transp to 3

change matrix in transp to 3 by 3 array

change numbers in matrix as follows:

0.0 1.0 0.0
0.0 0.5 0.5
0.0 0.0 0.0
This creates hmmdefs and macros in hmm4 folder.


Next, create the following HHEd command script, called sil.hed.

AT 2 4 0.2 {sil.transP}
AT 4 2 0.2 {sil.transP}
AT 1 3 0.3 {sp.transP}
TI silst {sil.state[3],sp.state[2]}

Next run HHEd as follows, but using the monophones1 file which contains the sp model:
HHEd -H hmm4/macros -H hmm4/hmmdefs -M hmm5 sil.hed monophones1

This creates hmmdefs and macros in hmm5 folder.

Next run HERest 2 more times, this time using the monophones1 file:

HERest -T 1 -C config -I phones0.mlf -t 250.0 150.0 1000.0 -S
train.scp -H hmm5/macros -H hmm5/hmmdefs -M hmm6 monophones1

HERest -T 1 -C config -I phones0.mlf -t 250.0 150.0 1000.0 -S
train.scp -H hmm6/macros -H hmm6/hmmdefs -M hmm7 monophones1

This creates hmmdefs and macros in hmm6 and hmm7 folder as well.

From here onwards our monophones based system is ready for recognition.If we run the command

cmd>HVite -H hmm7/macros -H hmm7/hmmdefs -C config2 -w wdnet dict
monophones1

No comments: