libsent/src/hmminfo/check_hmm_restriction.c File Reference

Check if the given HMM definition file can be used. More...

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

Include dependency graph for check_hmm_restriction.c:

Go to the source code of this file.

Defines

#define GOOD   0
 Mark transition as allowed.
#define FIXED   1
 Mark fixed transition.
#define BAD   3
 Mark not supported transition.

Functions

static int trans_ok_p (HTK_HMM_Trans *t)
boolean check_hmm_limit (HTK_HMM_Data *dt)
boolean check_all_hmm_limit (HTK_HMM_INFO *hmminfo)


Detailed Description

Check if the given HMM definition file can be used.

Author:
Akinobu LEE
Date:
Tue Feb 15 19:00:58 2005
TRANSITION RESTRICTIONS:

In multipath version, all the transitions including model-skipping transition is allowed. However, in normal version, their transition is restricted as above.

If such transition is found, Julius output warning and proceed by modifying transition to suite for the restriction.

Revision
1.4

Definition in file check_hmm_restriction.c.


Function Documentation

static int trans_ok_p ( HTK_HMM_Trans t  )  [static]

Scan the transition matrix to test the ristrictions.

Parameters:
t [in] a transition matrix to be tested
Returns:
0 if it conforms, 1 if unacceptable transition was found and modification forced, 3 if totally unsupported transition as included and cannot by handled.

Definition at line 75 of file check_hmm_restriction.c.

Referenced by check_hmm_limit().

boolean check_hmm_limit ( HTK_HMM_Data dt  ) 

Check if the transition matrix conforms the ristrictions of Julius.

Parameters:
dt [in] HTK HMM model to check.
Returns:
TRUE on success, FALSE if the check failed.

Definition at line 209 of file check_hmm_restriction.c.

Referenced by check_all_hmm_limit().

boolean check_all_hmm_limit ( HTK_HMM_INFO hmminfo  ) 

Check all the HMM definitions in a HTK HMM definition data.

Parameters:
hmminfo [in] HTK HMM data to check.
Returns:
TRUE if there was no bad models, FALSE if at least one model is bad.

Definition at line 242 of file check_hmm_restriction.c.

Referenced by rdhmmdef().


Generated on Tue Dec 26 16:17:52 2006 for Julius by  doxygen 1.5.0