buildsearch.tcl - Create a search object file for hmmsearch.tcl
buildsearch.tcl model dictionary grammar searchfile
The buildsearch.tcl script is used to build a finite state grammar search file used by the generic search script hmmsearch.tcl. To create the search object file the user must specify the input model, the pronunciation dictionary and the finite state grammar file.
The word pronunciations are listed in a simple text file with the following format
word pronun word pronun . .
The format of the word pronunciations are explained in more detail in the CSLUsh document as well in the word create help page. The following text file shows an example of the dictionary file for the word pronunciations used by the digit tutorial.
one w ah n [ah3] two t uw three th r iy four f aor five f ay v six s ih ks seven s eh v ah2 n [ah3] eight ey td nine n ay n [ah3] zero z ih r ow oh ow sil sil
Similarly the finite state grammar is read from a text file. The format of the finite state grammar is described in the CSLUsh document as well as in the grammar create help page. The following text file shows an example of the finite state grammar used for the digit tutorial.
$digit = one | two | three | four | five | six |
seven | eight | nine | zero | oh;
[sil] <$digit [sil]>;
The resulting search object is then save to disk in object file format.
hmmsearch.tcl, word create, grammar create
Johan Schalkwyk
Center for Spoken Language
Understanding
Oregon Graduate Institute of Science &
Technology