class DecoderSingleTest

This class is used to recognise a single input data file, post-process the recognition result and output the result.

Public Methods

[more]void removeSentMarksFromActual( Vocabulary* vocabulary )
Internal functions

Public Members

[more] Configures the test
[more] 'test_id_' is an ID assigned to this particular test
[more] 'test_filename_' is the absolute pathname of the input data file
[more] 'n_expected_words_' and 'expected_words_' contain information about
[more] the expected result of the test (ie.
[more] 'data_format_' indicates the type of data contained in the input
[more] data file.
[more] 'phone_models_' is a pointer to the PhoneModels instance that contains
[more] the phone HMM's.
[more] data (eg.
[more] 'remove_sent_marks_' indicates whether the sentence start and end
[more] words in the recognition result are to be removed
[more] 'output_result_' indicates whether the recognition result is to be
[more] output after the decoding has occurred
[more] 'out_fd' is the file where output will be written (if NULL then
[more] stdout assumed)
[more] 'output_ctm_' indicates if the output is to be in CTM format
[more] 'frame_msec_step_size' is the frame step size in milliseconds and is
[more] Configures the test.
[more] in a big archive file
[more] Parameters are same as other 'configure' method except 'test_filename_'
[more] has been replaced by 'archive_offset_'
[more] 'archive_offset' is the offset into an archive input file where the
[more] Runs the tests using the recogniser pointed to by 'decoder'
[more] 'archive_fd' is the big file containing the input data.
[more] this is not NULL, the archive_offset member variable is used
[more] Outputs the recognition result.
[more] recognition result (ie.
[more] strings and displayed.


Documentation

This class is used to recognise a single input data file, post-process the recognition result and output the result. The DecoderBatchTest class contains of an array of these objects.

o Configures the test
Configures the test

o 'test_id_' is an ID assigned to this particular test
'test_id_' is an ID assigned to this particular test

o 'test_filename_' is the absolute pathname of the input data file
'test_filename_' is the absolute pathname of the input data file

o 'n_expected_words_' and 'expected_words_' contain information about
'n_expected_words_' and 'expected_words_' contain information about

o the expected result of the test (ie.
the expected result of the test (ie. the correct transcription).

o 'data_format_' indicates the type of data contained in the input
'data_format_' indicates the type of data contained in the input

o data file.
data file. Only 1 input data format has been implemented so far.

o 'phone_models_' is a pointer to the PhoneModels instance that contains
'phone_models_' is a pointer to the PhoneModels instance that contains

o the phone HMM's.
the phone HMM's. This used to verify that datafiles contain expected

o data (eg.
data (eg. emission probs or features, correct vector sizes)

o 'remove_sent_marks_' indicates whether the sentence start and end
'remove_sent_marks_' indicates whether the sentence start and end

o words in the recognition result are to be removed
words in the recognition result are to be removed

o 'output_result_' indicates whether the recognition result is to be
'output_result_' indicates whether the recognition result is to be

o output after the decoding has occurred
output after the decoding has occurred

o 'out_fd' is the file where output will be written (if NULL then
'out_fd' is the file where output will be written (if NULL then

o stdout assumed)
stdout assumed)

o 'output_ctm_' indicates if the output is to be in CTM format
'output_ctm_' indicates if the output is to be in CTM format

o 'frame_msec_step_size' is the frame step size in milliseconds and is
'frame_msec_step_size' is the frame step size in milliseconds and is

o Configures the test.
Configures the test. This version is used when we have input data

o in a big archive file
in a big archive file

o Parameters are same as other 'configure' method except 'test_filename_'
Parameters are same as other 'configure' method except 'test_filename_'

o has been replaced by 'archive_offset_'
has been replaced by 'archive_offset_'

o 'archive_offset' is the offset into an archive input file where the
'archive_offset' is the offset into an archive input file where the

o Runs the tests using the recogniser pointed to by 'decoder'
Runs the tests using the recogniser pointed to by 'decoder'

o 'archive_fd' is the big file containing the input data.
'archive_fd' is the big file containing the input data. When

o this is not NULL, the archive_offset member variable is used
this is not NULL, the archive_offset member variable is used

o Outputs the recognition result.
Outputs the recognition result. If 'vocab' is defined, then the

o recognition result (ie.
recognition result (ie. vocab entry indices) are converted to

o strings and displayed.
strings and displayed. If 'vocab' is NULL then the indices are

ovoid removeSentMarksFromActual( Vocabulary* vocabulary )
Internal functions


This class has no child classes.
Author:
Darren Moore (moore@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.