| |
6.2.5 Language Modeling Tools: LM Tester
The Language Model Tester tool (isip_lm_tester) provides a convenient means
of verifying the validity of a language model. This tool will generate
a random sequence of sentences using the information from a language model
file. The number of sentences and maximum length of each sentence is specified
by the user. The tool outputs the sentences into a transcription database in
SOF format.
To test this tool, Go to the following directory.
$ISIP_TUTORIAL/sections/s06/s06_02_05/
and run the following command:
isip_lm_tester -seed 30 -max_length 10 -sentence_count 100 -language_model lm_phone_jsgf.sof -level word -name TIDIGITS sentences.sof
Expected Output:
!SENT_DELIM !DUMMY FOUR !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY TWO !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY ZERO !DUMMY !DUMMY OH !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY SIX !DUMMY !DUMMY THREE !DUMMY SILENCE !DUMMY NINE
!SENT_DELIM !DUMMY FOUR !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY FIVE !DUMMY !DUMMY ONE !DUMMY SILENCE !DUMMY THREE
!SENT_DELIM !DUMMY FIVE !DUMMY SILENCE !DUMMY FIVE !DUMMY !DUMMY ONE
!SENT_DELIM !DUMMY OH !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY SIX !DUMMY !DUMMY FOUR !DUMMY !DUMMY SEVEN !DUMMY
!SENT_DELIM !DUMMY ONE !DUMMY SILENCE !DUMMY ZERO !DUMMY !DUMMY FOUR
!SENT_DELIM !DUMMY ONE !DUMMY !DUMMY TWO !DUMMY !DUMMY SIX !DUMMY
!SENT_DELIM !DUMMY FOUR !DUMMY SILENCE !DUMMY FOUR !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY SEVEN !DUMMY !SENT_DELIM
!SENT_DELIM !DUMMY NINE !DUMMY !DUMMY SEVEN !DUMMY !SENT_DELIM
......
The file
sentences.sof
has been created and and contains all of the generated sentences in an
SOF transcription database.
|
| |
|