#include "segModel.h"
Go to the source code of this file.
Data Structures | |
struct | segGrammar |
Recognition grammar (bigram phone probability). More... | |
Typedefs | |
typedef segGrammar | SEG_GRAMMAR |
Recognition grammar (bigram phone probability). | |
Functions | |
int | segReadGrammar (SEG_GRAMMAR *grammar, char *gramFName, SEG_MODEL_SET *models) |
Read bigram grammar (bigram posterior probability table). |
int segReadGrammar | ( | SEG_GRAMMAR * | grammar, | |
char * | gramFName, | |||
SEG_MODEL_SET * | models | |||
) |
Read bigram grammar (bigram posterior probability table).
This function loads bigram probability table, and store it in a variable of struct grammar (SEG_GRAMMAR).
[in] | grammar | Grammar (bigram posterior probability table) |
[in] | gramFName | Name of the grammar file |
[in] | models | Model set |
ERROR_ALLOC | Memory allocation error | |
ERROR_FOPEN | File open error | |
RTN_ERROR | File read error (bad format) | |
NO_ERROR | Successfully executed |