libsent/src/phmm/mkwhmm.c File Reference

Generate compound HMM instance for recognition from phoneme sequence. More...

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

Include dependency graph for mkwhmm.c:

Go to the source code of this file.

Functions

static int totalstatelen (HMM_Logical **hdseq, int hdseqlen)
static void add_arc (HMM_STATE *state, int arc, LOGPROB a)
HMMnew_make_word_hmm_with_lm (HTK_HMM_INFO *hmminfo, HMM_Logical **hdseq, int hdseqlen, LOGPROB *lscore)
HMMnew_make_word_hmm (HTK_HMM_INFO *hmminfo, HMM_Logical **hdseq, int hdseqlen)
void free_hmm (HMM *d)


Detailed Description

Generate compound HMM instance for recognition from phoneme sequence.

Author:
Akinobu LEE
Date:
Fri Feb 18 18:31:40 2005
Revision
1.3

Definition in file mkwhmm.c.


Function Documentation

static int totalstatelen ( HMM_Logical **  hdseq,
int  hdseqlen 
) [static]

Calculate total number of states in a phoneme sequence.

Parameters:
hdseq [in] phoneme sequence as given by pointer list of logical HMM
hdseqlen [in] length of above
Returns:
the total number of states in the sequence.

Definition at line 41 of file mkwhmm.c.

Referenced by new_make_word_hmm_with_lm().

static void add_arc ( HMM_STATE state,
int  arc,
LOGPROB  a 
) [static]

Add a transition arc on the HMM state.

Parameters:
state [out] HMM state to add the arc
arc [in] state id of destination
a [in] transition log probability

Definition at line 74 of file mkwhmm.c.

HMM* new_make_word_hmm_with_lm ( HTK_HMM_INFO hmminfo,
HMM_Logical **  hdseq,
int  hdseqlen,
LOGPROB lscore 
)

Make a HMM instance for recognition from phoneme sequence, with connection probabiliry given for each phoneme.

Parameters:
hmminfo [in] HTK HMM definitions data
hdseq [in] phoneme sequence as given by pointer list of logical HMM
hdseqlen [in] length of above
lscore [in] list of log probability to be added at the emitting transition of each phoneme, or NULL if not needed.
Returns:
newly allocated HMM instance generated from the given data.

Definition at line 102 of file mkwhmm.c.

Referenced by new_make_word_hmm().

HMM* new_make_word_hmm ( HTK_HMM_INFO hmminfo,
HMM_Logical **  hdseq,
int  hdseqlen 
)

Make a HMM instance for recognition from phoneme sequence.

Parameters:
hmminfo [in] HTK HMM definitions data
hdseq [in] phoneme sequence as given by pointer list of logical HMM
hdseqlen [in] length of above
Returns:
newly allocated HMM instance generated from the given data.

Definition at line 362 of file mkwhmm.c.

Referenced by do_align(), and scan_word().

void free_hmm ( HMM d  ) 

Free an HMM instance.

Parameters:
d [in] HMM instance to free

Definition at line 381 of file mkwhmm.c.


Generated on Tue Dec 26 16:18:14 2006 for Julius by  doxygen 1.5.0