Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

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>

Include dependency graph for rdhmmdef_options.c:

Go to the source code of this file.

Functions

static void read_global_opt (FILE *fp, HTK_HMM_Options *op)
void set_global_opt (FILE *fp, HTK_HMM_INFO *hmm)
static char * get_opttype_str (OptionStr *confdata, short type)
char * get_cov_str (short covtype)
char * get_dur_str (short durtype)

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 56 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 133 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 148 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 168 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 181 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 29 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 38 of file rdhmmdef_options.c.


Generated on Tue Mar 28 16:03:11 2006 for Julius by  doxygen 1.4.2