julius/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.


Detailed Description

Check option parameters and set default if needed.

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

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(), multigram_add_prefix_filelist(), and multigram_add_prefix_list().

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(), and multigram_setup().


Generated on Tue Dec 26 12:53:35 2006 for Julian by  doxygen 1.5.0