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

m_chkparam.c File Reference

Check option parameters and set default if needed. More...

#include <julius.h>

Include dependency graph for m_chkparam.c:

Go to the source code of this file.

Functions

void checkpath (char *filename)
static void checkdir (char *dirname)
void check_specs ()
 Check the user-specified parameters.
static int default_width ()
 Returns the pre-defined default beam width on 1st pass of beam search.
int set_beam_width (WCHMM_INFO *wchmm, int specified)
 Determine beam width on the 1st pass.
void set_lm_weight ()
void set_lm_weight2 ()


Detailed Description

Check option parameters and set default if needed.

Author:
Akinobu LEE
Date:
Fri Mar 18 16:31:45 2005
Revision
1.2

Definition in file m_chkparam.c.


Function Documentation

void checkpath char *  filename  ) 
 

Check if a file actually exist and is readable.

Parameters:
filename [in] file path name

Definition at line 39 of file m_chkparam.c.

Referenced by check_specs().

static void checkdir char *  dirname  )  [static]
 

Check if a directory exists and is writable.

Parameters:
dirname [in] directory path name

Definition at line 60 of file m_chkparam.c.

Referenced by check_specs().

void check_specs  ) 
 

Check the user-specified parameters.

This functions checks whether the specified files actually exist, and also the mutual coherence of the parameters and their correspondence with used model is also checked. If a serious error is found, it produces error and exits.

Definition at line 87 of file m_chkparam.c.

Referenced by main().

static int default_width  )  [static]
 

Returns the pre-defined default beam width on 1st pass of beam search.

The default beam width will be selected from the pre-defined values according to the compilation-time engine setting and the type of acoustic model. The pre-defined values were determined from the development experiments on IPA evaluation testset of Japanese 20k-word dictation task.

Returns:
the selected default beam width.

Definition at line 218 of file m_chkparam.c.

Referenced by set_beam_width().

int set_beam_width WCHMM_INFO wchmm,
int  specified
 

Determine beam width on the 1st pass.

Parameters:
wchmm [in] tree lexicon data
specified [in] user-specified beam width (0: full search, -1: not specified)
Returns:
the final beam width to be used.

Definition at line 283 of file m_chkparam.c.

Referenced by final_fusion().

void set_lm_weight  ) 
 

Set default values of LM weight and word insertion penalty on the 1st pass depending on the acoustic model type.

Definition at line 318 of file m_chkparam.c.

Referenced by configure_param().

void set_lm_weight2  ) 
 

Set default values of LM weight and word insertion penalty on the 2nd pass depending on the acoustic model type.

Definition at line 342 of file m_chkparam.c.

Referenced by configure_param().


Generated on Tue Mar 28 16:01:53 2006 for Julius by  doxygen 1.4.2