This class contains the dictionary of accepted words for a speech recognition experiment, such as the one used by SpeechHMM.
Inheritance:
Public Fields
-
int** words
- the vector of words, which are represented by vectors of phonemes
-
int* word_length
- the length of each word (number of phonemes)
-
int n_words
- the number of words in the dictionary
-
char** words_string
- for each word, the literal transcription
-
int silence_word
- the index of the "silence" word
-
char** phonemes
- the phonemes
-
int n_phonemes
- the number of different phonemes
Public Methods
-
Dictionary()
-
Dictionary(char* filename, char** phonemes, int n_phonemes)
- creates a Dictionary given a filename containing the words, as well as a vector of phonemes
-
virtual int findWord(char* word)
- this methods return the index of the given word, if found
-
virtual int findPhoneme(char* phoneme)
- this methods return the index of the given phoneme, if found
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
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)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
This class contains the dictionary of accepted words for
a speech recognition experiment, such as the one used by SpeechHMM.
It contains a list of words, each word being a list of phonemes.
int** words
- the vector of words, which are represented by vectors of phonemes
int* word_length
- the length of each word (number of phonemes)
int n_words
- the number of words in the dictionary
char** words_string
- for each word, the literal transcription
int silence_word
- the index of the "silence" word
char** phonemes
- the phonemes
int n_phonemes
- the number of different phonemes
Dictionary()
Dictionary(char* filename, char** phonemes, int n_phonemes)
- creates a Dictionary given a filename containing the words, as well
as a vector of phonemes
virtual int findWord(char* word)
- this methods return the index of the given word, if found
virtual int findPhoneme(char* phoneme)
- this methods return the index of the given phoneme, if found
- 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++.