class WordSegMeasurer

This class can be used to save the word segmentation of a SimpleDecoderSpeechHMM in a file.

Inheritance:


Public Fields

[more]WordSeg* wordseg
the pointer to the corresponding wordseg object
[more]bool print_obtained
a boolean stating whether we print the obtained word sequence
[more]bool print_targets
a boolean stating whether we also print the corresponding targets
[more]bool print_timing
a boolean stating whether we also print the alignment timings
[more]bool print_desired_timing
a boolean stating whether we also print the desired alignment timings
[more]int n_per_frame
when timing is required, what is the number of tics per frames
[more]EditDistance* edit_distance
eventually compute the edit_distance
[more]EditDistance* sum_edit_distance
.

Public Methods

[more] WordSegMeasurer(WordSeg* wordseg_, DataSet* data_, XFile* file_, EditDistance* edit_distance_=NULL, char** file_list_=NULL, int n_file_list_ = 0)


Inherited from Measurer:

Public Fields

oXFile* file
oDataSet* data
obool binary_mode

Public Methods

ovirtual void measureExample()
ovirtual void measureIteration()
ovirtual void measureEnd()
ovirtual void reset()


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid 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.

oWordSeg* wordseg
the pointer to the corresponding wordseg object

obool print_obtained
a boolean stating whether we print the obtained word sequence

obool print_targets
a boolean stating whether we also print the corresponding targets

obool print_timing
a boolean stating whether we also print the alignment timings

obool print_desired_timing
a boolean stating whether we also print the desired alignment timings

oint n_per_frame
when timing is required, what is the number of tics per frames

oEditDistance* edit_distance
eventually compute the edit_distance

oEditDistance* sum_edit_distance
. and keep its sum

o 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++.