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>

Go to the source code of this file.

Functions

static int totalstatelen (HMM_Logical **hdseq, int hdseqlen, boolean *has_sp, HTK_HMM_INFO *hmminfo)
 Calculate total number of states in a phoneme sequence.
static void add_arc (HMM_STATE *state, int arc, LOGPROB a)
 Add a transition arc on the HMM state.
HMMnew_make_word_hmm_with_lm (HTK_HMM_INFO *hmminfo, HMM_Logical **hdseq, int hdseqlen, boolean *has_sp, LOGPROB *lscore)
 Make a HMM instance for recognition from phoneme sequence, with connection probabiliry given for each phoneme.
HMMnew_make_word_hmm (HTK_HMM_INFO *hmminfo, HMM_Logical **hdseq, int hdseqlen, boolean *has_sp)
 Make a HMM instance for recognition from phoneme sequence.
void free_hmm (HMM *d)
 Free an HMM instance.


Detailed Description

Generate compound HMM instance for recognition from phoneme sequence.

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

Definition in file mkwhmm.c.


Function Documentation

static int totalstatelen ( HMM_Logical **  hdseq,
int  hdseqlen,
boolean *  has_sp,
HTK_HMM_INFO hmminfo 
) [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
has_sp [in] indicates where short-pause insertion is possible
hmminfo [in] HMM definition
Returns:
the total number of states in the sequence.

Definition at line 42 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 70 of file mkwhmm.c.

Referenced by new_make_word_hmm_with_lm().

HMM* new_make_word_hmm_with_lm ( HTK_HMM_INFO hmminfo,
HMM_Logical **  hdseq,
int  hdseqlen,
boolean *  has_sp,
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
has_sp [in] indicates where short-pause insertion is possible
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 99 of file mkwhmm.c.

Referenced by new_make_word_hmm().

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

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
has_sp [in] indicates where short-pause insertion is possible
Returns:
newly allocated HMM instance generated from the given data.

Definition at line 356 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 367 of file mkwhmm.c.

Referenced by do_align(), and scan_word().


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