libsent/src/hmminfo/rdhmmdef_options.c File Reference

Read HTK HMM definition file: global options. More...

#include <sent/stddefs.h>
#include <sent/htk_param.h>
#include <sent/htk_hmm.h>

Go to the source code of this file.

Functions

static void read_global_opt (FILE *fp, HTK_HMM_Options *op)
 Read in global options.
void set_global_opt (FILE *fp, HTK_HMM_INFO *hmm)
 Set global options starting at the current token to HMM definition data.
static char * get_opttype_str (OptionStr *confdata, short type)
 Get option name string from its type code.
char * get_cov_str (short covtype)
 Get covariance option name string from its type code.
char * get_dur_str (short durtype)
 Get duration option name string from its type code.

Variables

static OptionStr optcov []
 Strings to make mapping between HMM covariance option strings and code definitions.
static OptionStr optdur []
 Strings to make mapping between HMM duration option strings and code definitions.
char * rdhmmdef_token
 Current token.


Detailed Description

Read HTK HMM definition file: global options.

Author:
Akinobu LEE
Date:
Wed Feb 16 01:53:45 2005
Revision
1.1.1.1

Definition in file rdhmmdef_options.c.


Function Documentation

static void read_global_opt ( FILE *  fp,
HTK_HMM_Options op 
) [static]

Read in global options.

Parameters:
fp [in] file pointer
op [out] pointer to store the global options

Definition at line 57 of file rdhmmdef_options.c.

Referenced by set_global_opt().

void set_global_opt ( FILE *  fp,
HTK_HMM_INFO hmm 
)

Set global options starting at the current token to HMM definition data.

Parameters:
fp [in] file pointer
hmm [out] HMM definition data to store the global options

Definition at line 134 of file rdhmmdef_options.c.

Referenced by rdhmmdef().

static char* get_opttype_str ( OptionStr confdata,
short  type 
) [static]

Get option name string from its type code.

Parameters:
confdata [in] option description data
type [in] type code to search
Returns:
name string if found, or NULL if not found.

Definition at line 149 of file rdhmmdef_options.c.

Referenced by get_cov_str(), and get_dur_str().

char* get_cov_str ( short  covtype  ) 

Get covariance option name string from its type code.

Parameters:
covtype [in] type code to search
Returns:
the name string if found, or NULL if not found.

Definition at line 169 of file rdhmmdef_options.c.

Referenced by print_hmmdef_info().

char* get_dur_str ( short  durtype  ) 

Get duration option name string from its type code.

Parameters:
durtype [in] type code to search
Returns:
the name string if found, or NULL if not found.

Definition at line 182 of file rdhmmdef_options.c.

Referenced by print_hmmdef_info().


Variable Documentation

OptionStr optcov[] [static]

Initial value:

 {      
  {"DIAGC", C_DIAG_C, "Diag", TRUE},
  {"INVDIAGC", C_INV_DIAG, "InvDiag", FALSE},
  {"FULLC", C_FULL, "Full", FALSE},
  {"LLTC", C_LLT, "LLT", FALSE}, 
  {"XFORMC", C_XFORM, "Xform", FALSE},  
  {NULL,0,NULL,FALSE}
}
Strings to make mapping between HMM covariance option strings and code definitions.

Definition at line 30 of file rdhmmdef_options.c.

OptionStr optdur[] [static]

Initial value:

 {      
  {"NULLD", D_NULL, "Null", TRUE},
  {"POISSOND", D_POISSON, "Poisson", FALSE},
  {"GAMMAD", D_GAMMA, "Gamma", FALSE},
  {"GEND", D_GEN, "Gen", FALSE},
  {NULL,0,NULL,FALSE}
}
Strings to make mapping between HMM duration option strings and code definitions.

Definition at line 39 of file rdhmmdef_options.c.


Generated on Tue Dec 18 16:01:39 2007 for Julius by  doxygen 1.5.4