Jconf configuration API
[JuliusLib API]

Collaboration diagram for Jconf configuration API:
Functions to load / create configuration parameters. More...

Functions

JCONF_AMj_jconf_am_new ()
 Allocate a new acoustic model (AM) parameter structure.
void j_jconf_am_free (JCONF_AM *amconf)
 Release an acoustic model (AM) parameter structure Default parameter values are set to it.
boolean j_jconf_am_regist (Jconf *jconf, JCONF_AM *amconf, char *name)
 Register AM configuration to global jconf.
JCONF_LMj_jconf_lm_new ()
 Allocate a new language model (LM) parameter structure.
void j_jconf_lm_free (JCONF_LM *lmconf)
 Release a language model (LM) parameter structure.
boolean j_jconf_lm_regist (Jconf *jconf, JCONF_LM *lmconf, char *name)
 Register LM configuration to global jconf.
JCONF_SEARCHj_jconf_search_new ()
 Allocate a new search (SEARCH) parameter structure.
void j_jconf_search_free (JCONF_SEARCH *sconf)
 Release a search (SEARCH) parameter structure.
boolean j_jconf_search_regist (Jconf *jconf, JCONF_SEARCH *sconf, char *name)
 Register SEARCH configuration to global jconf.
Jconfj_jconf_new ()
 Allocate a new global configuration parameter structure.
void j_jconf_free (Jconf *jconf)
 Free a global configuration parameter structure.
int j_config_load_args (Jconf *jconf, int argc, char *argv[])
 Load parameters from command argments, and set to each configuration instances in jconf.
int j_config_load_file (Jconf *jconf, char *filename)
 Load parameters from a jconf file and set to each configuration instances in jconf.
Jconfj_config_load_args_new (int argc, char *argv[])
 Create a new configuration instance and load parameters from command argments.
Jconfj_config_load_file_new (char *filename)
 Create a new configuration instance and load parameters from a jconf file.
JCONF_AMj_get_amconf_by_name (Jconf *jconf, char *name)
 Get AM configuration structure in jconf by its name.
JCONF_AMj_get_amconf_by_id (Jconf *jconf, int id)
 Get AM configuration structure in jconf by its id.
JCONF_AMj_get_amconf_default (Jconf *jconf)
 Return default AM configuration.
JCONF_LMj_get_lmconf_by_name (Jconf *jconf, char *name)
 Get LM configuration structure in jconf by its name.
JCONF_LMj_get_lmconf_by_id (Jconf *jconf, int id)
 Get LM configuration structure in jconf by its id.
JCONF_SEARCHj_get_searchconf_by_name (Jconf *jconf, char *name)
 Get SEARCH configuration structure in jconf by its name.
JCONF_SEARCHj_get_searchconf_by_id (Jconf *jconf, int id)
 Get SEARCH configuration structure in jconf by its id.
boolean j_jconf_finalize (Jconf *jconf)
 Check and finalize jconf parameters.

Detailed Description

Functions to load / create configuration parameters.


Function Documentation

JCONF_AM* j_jconf_am_new (  ) 

Allocate a new acoustic model (AM) parameter structure.

Default parameter values are set to it.

Returns:
the newly allocated AM parameter structure

Definition at line 336 of file instance.c.

Referenced by j_jconf_new(), and opt_parse().

Here is the caller graph for this function:

void j_jconf_am_free ( JCONF_AM amconf  ) 

Release an acoustic model (AM) parameter structure Default parameter values are set to it.

Parameters:
amconf [in] AM configuration

Definition at line 363 of file instance.c.

Referenced by j_jconf_free(), j_process_am_remove(), and opt_parse().

Here is the caller graph for this function:

boolean j_jconf_am_regist ( Jconf jconf,
JCONF_AM amconf,
char *  name 
)

Register AM configuration to global jconf.

Returns error if the same name already exist in the jconf.

Parameters:
jconf [i/o] global jconf
amconf [in] AM configuration to register
name [in] module name
Returns:
TRUE on success, FALSE on failure

Definition at line 389 of file instance.c.

Referenced by opt_parse().

Here is the caller graph for this function:

JCONF_LM* j_jconf_lm_new (  ) 

Allocate a new language model (LM) parameter structure.

Default parameter values are set to it.

Returns:
the newly allocated LM parameter structure.

Definition at line 440 of file instance.c.

Referenced by j_jconf_new(), and opt_parse().

Here is the caller graph for this function:

void j_jconf_lm_free ( JCONF_LM lmconf  ) 

Release a language model (LM) parameter structure.

Parameters:
lmconf [in] LM parameter structure

Definition at line 465 of file instance.c.

Referenced by j_jconf_free(), j_process_lm_remove(), and opt_parse().

Here is the caller graph for this function:

boolean j_jconf_lm_regist ( Jconf jconf,
JCONF_LM lmconf,
char *  name 
)

Register LM configuration to global jconf.

Returns error if the same name already exist in the jconf.

Parameters:
jconf [i/o] global jconf
lmconf [in] LM configuration to register
name [in] module name
Returns:
TRUE on success, FALSE on failure

Definition at line 491 of file instance.c.

Referenced by j_process_add_lm(), and opt_parse().

Here is the caller graph for this function:

JCONF_SEARCH* j_jconf_search_new (  ) 

Allocate a new search (SEARCH) parameter structure.

Default parameter values are set to it.

Returns:
the newly allocated SEARCH parameter structure.

Definition at line 542 of file instance.c.

Referenced by j_jconf_new(), and opt_parse().

Here is the caller graph for this function:

void j_jconf_search_free ( JCONF_SEARCH sconf  ) 

Release a search (SEARCH) parameter structure.

Parameters:
sconf [in] SEARCH parameter structure

Definition at line 567 of file instance.c.

Referenced by j_jconf_free(), j_process_add_lm(), j_process_remove(), and opt_parse().

Here is the caller graph for this function:

boolean j_jconf_search_regist ( Jconf jconf,
JCONF_SEARCH sconf,
char *  name 
)

Register SEARCH configuration to global jconf.

Returns error if the same name already exist in the jconf.

Parameters:
jconf [i/o] global jconf
sconf [in] SEARCH configuration to register
name [in] module name
Returns:
TRUE on success, FALSE on failure

Definition at line 593 of file instance.c.

Referenced by j_process_add_lm(), and opt_parse().

Here is the caller graph for this function:

Jconf* j_jconf_new (  ) 

Allocate a new global configuration parameter structure.

JCONF_AM, JCONF_LM, JCONF_SEARCH are defined one for each, and assigned to the newly allocated structure as initial instances.

Returns:
the newly allocated global configuration parameter structure.

Definition at line 649 of file instance.c.

Referenced by j_config_load_args_new(), j_config_load_file_new(), and j_output_argument_help().

Here is the caller graph for this function:

void j_jconf_free ( Jconf jconf  ) 

Free a global configuration parameter structure.

All JCONF_AM, JCONF_LM, JCONF_SEARCH are also released.

Parameters:
jconf [in] global configuration parameter structure

Definition at line 702 of file instance.c.

Referenced by j_config_load_args_new(), j_config_load_file_new(), j_output_argument_help(), and j_recog_free().

Here is the caller graph for this function:

int j_config_load_args ( Jconf jconf,
int  argc,
char *  argv[] 
)

Load parameters from command argments, and set to each configuration instances in jconf.

Parameters:
jconf [i/o] global configuration instance
argc [in] number of arguments
argv [in] list of argument strings
Returns:
0 on success, or -1 on failure.

Definition at line 319 of file jfunc.c.

int j_config_load_file ( Jconf jconf,
char *  filename 
)

Load parameters from a jconf file and set to each configuration instances in jconf.

Parameters:
jconf [i/o] glbal configuration instance
filename [in] jconf filename
Returns:
0 on sucess, or -1 on failure.

Definition at line 368 of file jfunc.c.

Jconf* j_config_load_args_new ( int  argc,
char *  argv[] 
)

Create a new configuration instance and load parameters from command argments.

Parameters:
argc [in] number of arguments
argv [in] list of argument strings
Returns:
the newly allocated global configuration instance.

Definition at line 417 of file jfunc.c.

Referenced by main().

Here is the caller graph for this function:

Jconf* j_config_load_file_new ( char *  filename  ) 

Create a new configuration instance and load parameters from a jconf file.

Parameters:
filename [in] jconf filename
Returns:
the newly allocated global configuration instance.

Definition at line 468 of file jfunc.c.

JCONF_AM* j_get_amconf_by_name ( Jconf jconf,
char *  name 
)

Get AM configuration structure in jconf by its name.

Parameters:
jconf [in] global configuration
name [in] AM module name
Returns:
the specified AM configuration, or NULL if not found.

Definition at line 773 of file jfunc.c.

Referenced by opt_parse().

Here is the caller graph for this function:

JCONF_AM* j_get_amconf_by_id ( Jconf jconf,
int  id 
)

Get AM configuration structure in jconf by its id.

Parameters:
jconf [in] global configuration
id [in] AM module ID
Returns:
the specified AM configuration, or NULL if not found.

Definition at line 807 of file jfunc.c.

Referenced by opt_parse().

Here is the caller graph for this function:

JCONF_AM* j_get_amconf_default ( Jconf jconf  ) 

Return default AM configuration.

If multiple AM configuration exists, return the latest one.

Parameters:
jconf [in] global configuration
Returns:
the specified AM configuration, or NULL if not found.

Definition at line 844 of file jfunc.c.

Referenced by j_process_add_lm().

Here is the caller graph for this function:

JCONF_LM* j_get_lmconf_by_name ( Jconf jconf,
char *  name 
)

Get LM configuration structure in jconf by its name.

Parameters:
jconf [in] global configuration
name [in] LM module name
Returns:
the specified LM configuration, or NULL if not found.

Definition at line 871 of file jfunc.c.

Referenced by opt_parse().

Here is the caller graph for this function:

JCONF_LM* j_get_lmconf_by_id ( Jconf jconf,
int  id 
)

Get LM configuration structure in jconf by its id.

Parameters:
jconf [in] global configuration
id [in] LM module ID
Returns:
the specified LM configuration, or NULL if not found.

Definition at line 905 of file jfunc.c.

Referenced by opt_parse().

Here is the caller graph for this function:

JCONF_SEARCH* j_get_searchconf_by_name ( Jconf jconf,
char *  name 
)

Get SEARCH configuration structure in jconf by its name.

Parameters:
jconf [in] global configuration
name [in] SEARCH module name
Returns:
the found SEARCH configuration, or NULL if not found.

Definition at line 939 of file jfunc.c.

JCONF_SEARCH* j_get_searchconf_by_id ( Jconf jconf,
int  id 
)

Get SEARCH configuration structure in jconf by its id.

Parameters:
jconf [in] global configuration
id [in] SEARCH module ID
Returns:
the found SEARCH configuration, or NULL if not found.

Definition at line 973 of file jfunc.c.

boolean j_jconf_finalize ( Jconf jconf  ) 

Check and finalize jconf parameters.

This functions parse through the global jconf configuration parameters. This function checks for value range of variables, file existence, competing specifications among variables or between variables and models, calculate some parameters from the given values, etc.

This function should be called just after all values are set by jconf, command argument or by user application, and before creating engine instance and loading models.

Parameters:
jconf [i/o] global jconf configuration structure
Returns:
TRUE when all check has been passed, or FALSE if not passed.

Definition at line 95 of file m_chkparam.c.

Referenced by j_create_instance_from_jconf(), and j_process_add_lm().

Here is the caller graph for this function:


Generated on Tue Dec 18 16:02:05 2007 for Julius by  doxygen 1.5.4