class Vocabulary

This object contains the list of words we want our recogniser to recognise plus a few "special" words (eg.

Inheritance:


Public Methods

[more]char* getWord( int index )
Returns the word given the index into the vocabulary

Public Members

[more] Creates the vocabulary
[more] 'lex_fname' is the name of the lexicon file containing the pronunciations to be
[more] recognised.
[more] where the (prior) is optional
[more] 'sent_start_word' and 'sent_end_word' are the words that will start and
[more] Adds a word to the vocabulary.
[more] Returns the index of a given word.
[more] words at indices of 'guess' and 'guess+1' are checked for a match


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

o Creates the vocabulary
Creates the vocabulary

o '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

o recognised.
recognised. The format is the standard "word(prior) ph ph ph" format

o where the (prior) is optional
where the (prior) is optional

o '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

o Adds a word to the vocabulary.
Adds a word to the vocabulary. Maintains alphabetic order. Does not add

ochar* getWord( int index )
Returns the word given the index into the vocabulary

o Returns the index of a given word.
Returns the index of a given word. If 'guess' is defined, then the

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