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

rdhmmdef_trans.c File Reference

Read HTK HMM definition file: transition matrix. More...

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

Include dependency graph for rdhmmdef_trans.c:

Go to the source code of this file.

Functions

static HTK_HMM_Transtrans_new ()
void trans_add (HTK_HMM_INFO *hmm, HTK_HMM_Trans *new)
static HTK_HMM_Transtrans_lookup (HTK_HMM_INFO *hmm, char *keyname)
static HTK_HMM_Transtrans_read (FILE *fp)
 Read one new data and returns the pointer.
HTK_HMM_Transget_trans_data (FILE *fp, HTK_HMM_INFO *hmm)
 Return a pointer to the data located at the current point.
void def_trans_macro (char *name, FILE *fp, HTK_HMM_INFO *hmm)

Variables

char * rdhmmdef_token
 Current token.


Detailed Description

Read HTK HMM definition file: transition matrix.

Author:
Akinobu LEE
Date:
Wed Feb 16 03:50:55 2005
The transition probabilities will be converted to log10 scale after finished reading the while HMM definition file.

Revision
1.1.1.1

Definition in file rdhmmdef_trans.c.


Function Documentation

static HTK_HMM_Trans* trans_new  )  [static]
 

Allocate a new data area and return it.

Returns:
pointer to newly allocated data.

Definition at line 40 of file rdhmmdef_trans.c.

Referenced by trans_read().

void trans_add HTK_HMM_INFO hmm,
HTK_HMM_Trans new
 

Add a new data to the global structure.

Parameters:
hmm [i/o] HMM definition data to store it
new [in] new data to be added

Definition at line 60 of file rdhmmdef_trans.c.

Referenced by def_trans_macro(), get_trans_data(), and rd_trans().

static HTK_HMM_Trans* trans_lookup HTK_HMM_INFO hmm,
char *  keyname
[static]
 

Look up a data macro by the name.

Parameters:
hmm [in] HMM definition data
keyname [in] macro name to find
Returns:
pointer to the found data, or NULL if not found.

Definition at line 93 of file rdhmmdef_trans.c.

Referenced by get_trans_data().

static HTK_HMM_Trans* trans_read FILE *  fp  )  [static]
 

Read one new data and returns the pointer.

If a sub-component of this data is directly defined at here, they will be read from here and assigned to this data. If a sub-component is not defined here but a macro name referencing to the component previously defined in other place, the data will be searched by the macro name and the pointer to the found component will be assigned to this model.

Parameters:
fp [in] file pointer
Returns:
pointer to the newly read data.

Definition at line 119 of file rdhmmdef_trans.c.

Referenced by def_trans_macro(), and get_trans_data().

HTK_HMM_Trans* get_trans_data FILE *  fp,
HTK_HMM_INFO hmm
 

Return a pointer to the data located at the current point.

If the current point is a macro reference, the pointer to the already defined data will be searched and returned. Otherwise, the definition of the data will be read from the current point and pointer to the newly allocated data will be returned.

Parameters:
fp [in] file pointer
hmm [i/o] HMM definition data
Returns:
pointer to the data located at the current point.

Definition at line 171 of file rdhmmdef_trans.c.

Referenced by htk_hmmdata_read().

void def_trans_macro char *  name,
FILE *  fp,
HTK_HMM_INFO hmm
 

Read a new data and store it as a macro.

Parameters:
name [in] macro name
fp [in] file pointer
hmm [i/o] HMM definition data

Definition at line 206 of file rdhmmdef_trans.c.

Referenced by rdhmmdef().


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