This class can be used to save the word segmentation of a SimpleDecoderSpeechHMM in a file.
Inheritance:
Public Fields
-
WordSeg* wordseg
- the pointer to the corresponding wordseg object
-
bool print_obtained
- a boolean stating whether we print the obtained word sequence
-
bool print_targets
- a boolean stating whether we also print the corresponding targets
-
bool print_timing
- a boolean stating whether we also print the alignment timings
-
bool print_desired_timing
- a boolean stating whether we also print the desired alignment timings
-
int n_per_frame
- when timing is required, what is the number of tics per frames
-
EditDistance* edit_distance
- eventually compute the edit_distance
-
EditDistance* sum_edit_distance
- .
Public Methods
-
WordSegMeasurer(WordSeg* wordseg_, DataSet* data_, XFile* file_, EditDistance* edit_distance_=NULL, char** file_list_=NULL, int n_file_list_ = 0)
Public Fields
-
XFile* file
-
DataSet* data
-
bool binary_mode
Public Methods
-
virtual void measureExample()
-
virtual void measureIteration()
-
virtual void measureEnd()
-
virtual void reset()
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void setOOption(const char* name, Object* option)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
This class can be used to save the word segmentation of a
SimpleDecoderSpeechHMM
in a file. Optionally, it also prints the corresponding target segmentation.
- WordSeg* wordseg
- the pointer to the corresponding wordseg object
- bool print_obtained
- a boolean stating whether we print the obtained word sequence
- bool print_targets
- a boolean stating whether we also print the corresponding targets
- bool print_timing
- a boolean stating whether we also print the alignment timings
- bool print_desired_timing
- a boolean stating whether we also print the desired alignment timings
- int n_per_frame
- when timing is required, what is the number of tics per frames
- EditDistance* edit_distance
- eventually compute the edit_distance
- EditDistance* sum_edit_distance
- . and keep its sum
- WordSegMeasurer(WordSeg* wordseg_, DataSet* data_, XFile* file_, EditDistance* edit_distance_=NULL, char** file_list_=NULL, int n_file_list_ = 0)
- This class has no child classes.
- Author:
- Samy Bengio (bengio@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.