class Grammar

This class contains the grammar of accepted sentences for a speech recognition experiment such as the one using SimpleDecoderSpeechHMM A grammar is a transition table where each node is a word.

Inheritance:


Public Fields

[more]int n_words
the number of words in the grammar (different than the number of words in the lexicon, because the same word can appear twice in the grammar)
[more]int* words
the index of the words (in the lexicon object)
[more]int* start
this vector is used in SimpleDecoderSpeechHMM to keep the state index in the decoding state matrix, corresponding to the given word
[more]bool** transitions
the transition matrix.

Public Methods

[more] Grammar(int n_words_)


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 contains the grammar of accepted sentences for a speech recognition experiment such as the one using SimpleDecoderSpeechHMM A grammar is a transition table where each node is a word. The user is responsible to set the transition table as he wishes. (by default, there are no transition!)

oint n_words
the number of words in the grammar (different than the number of words in the lexicon, because the same word can appear twice in the grammar)

oint* words
the index of the words (in the lexicon object)

oint* start
this vector is used in SimpleDecoderSpeechHMM to keep the state index in the decoding state matrix, corresponding to the given word

obool** transitions
the transition matrix. each true transition (i,j) means the word whose index is i can be followed by the word whose index is j

o Grammar(int n_words_)


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