This object contains the list of words we want our recogniser to recognise plus a few "special" words (eg.
Inheritance:
Public Methods
-
char* getWord( int index )
- Returns the word given the index into the vocabulary
Public Members
-
Creates the vocabulary
-
'lex_fname' is the name of the lexicon file containing the pronunciations to be
-
recognised.
-
where the (prior) is optional
-
'sent_start_word' and 'sent_end_word' are the words that will start and
-
Adds a word to the vocabulary.
-
Returns the index of a given word.
-
words at indices of 'guess' and 'guess+1' are checked for a match
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 object contains the list of words we want our recogniser to recognise
plus a few "special" words (eg. sentence markers, silence word). There are
no duplicates in the list, and the list is sorted alphabetically.
- Creates the vocabulary
- Creates the vocabulary
- 'lex_fname' is the name of the lexicon file containing the pronunciations to be
- 'lex_fname' is the name of the lexicon file containing the pronunciations to be
- recognised.
- recognised. The format is the standard "word(prior) ph ph ph" format
- where the (prior) is optional
- where the (prior) is optional
- 'sent_start_word' and 'sent_end_word' are the words that will start and
- 'sent_start_word' and 'sent_end_word' are the words that will start and
- Adds a word to the vocabulary.
- Adds a word to the vocabulary. Maintains alphabetic order. Does not add
- char* getWord( int index )
- Returns the word given the index into the vocabulary
- Returns the index of a given word.
- Returns the index of a given word. If 'guess' is defined, then the
- words at indices of 'guess' and 'guess+1' are checked for a match
- words at indices of 'guess' and 'guess+1' are checked for a match
- 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++.