class Dictionary

This class contains the dictionary of accepted words for a speech recognition experiment, such as the one used by SpeechHMM.

Inheritance:


Public Fields

[more]int** words
the vector of words, which are represented by vectors of phonemes
[more]int* word_length
the length of each word (number of phonemes)
[more]int n_words
the number of words in the dictionary
[more]char** words_string
for each word, the literal transcription
[more]int silence_word
the index of the "silence" word
[more]char** phonemes
the phonemes
[more]int n_phonemes
the number of different phonemes

Public Methods

[more] Dictionary()
[more] Dictionary(char* filename, char** phonemes, int n_phonemes)
creates a Dictionary given a filename containing the words, as well as a vector of phonemes
[more]virtual int findWord(char* word)
this methods return the index of the given word, if found
[more]virtual int findPhoneme(char* phoneme)
this methods return the index of the given phoneme, if found


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
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)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid 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.

oint** words
the vector of words, which are represented by vectors of phonemes

oint* word_length
the length of each word (number of phonemes)

oint n_words
the number of words in the dictionary

ochar** words_string
for each word, the literal transcription

oint silence_word
the index of the "silence" word

ochar** phonemes
the phonemes

oint n_phonemes
the number of different phonemes

o Dictionary()

o Dictionary(char* filename, char** phonemes, int n_phonemes)
creates a Dictionary given a filename containing the words, as well as a vector of phonemes

ovirtual int findWord(char* word)
this methods return the index of the given word, if found

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