Collaboration diagram for Jconf configuration API:
![]() |
Functions | |
JCONF_AM * | j_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_LM * | j_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_SEARCH * | j_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. | |
Jconf * | j_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. | |
Jconf * | j_config_load_args_new (int argc, char *argv[]) |
Create a new configuration instance and load parameters from command argments. | |
Jconf * | j_config_load_file_new (char *filename) |
Create a new configuration instance and load parameters from a jconf file. | |
JCONF_AM * | j_get_amconf_by_name (Jconf *jconf, char *name) |
Get AM configuration structure in jconf by its name. | |
JCONF_AM * | j_get_amconf_by_id (Jconf *jconf, int id) |
Get AM configuration structure in jconf by its id. | |
JCONF_AM * | j_get_amconf_default (Jconf *jconf) |
Return default AM configuration. | |
JCONF_LM * | j_get_lmconf_by_name (Jconf *jconf, char *name) |
Get LM configuration structure in jconf by its name. | |
JCONF_LM * | j_get_lmconf_by_id (Jconf *jconf, int id) |
Get LM configuration structure in jconf by its id. | |
JCONF_SEARCH * | j_get_searchconf_by_name (Jconf *jconf, char *name) |
Get SEARCH configuration structure in jconf by its name. | |
JCONF_SEARCH * | j_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. |
JCONF_AM* j_jconf_am_new | ( | ) |
Allocate a new acoustic model (AM) parameter structure.
Default parameter values are set to it.
Definition at line 337 of file instance.c.
Referenced by initialize_GMM(), 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.
amconf | [in] AM configuration |
Definition at line 364 of file instance.c.
Referenced by j_jconf_free(), j_process_am_remove(), and opt_parse().
Here is the caller graph for this function:
Register AM configuration to global jconf.
Returns error if the same name already exist in the jconf.
jconf | [i/o] global jconf | |
amconf | [in] AM configuration to register | |
name | [in] module name |
Definition at line 390 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.
Definition at line 441 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.
lmconf | [in] LM parameter structure |
Definition at line 466 of file instance.c.
Referenced by j_jconf_free(), j_process_lm_remove(), and opt_parse().
Here is the caller graph for this function:
Register LM configuration to global jconf.
Returns error if the same name already exist in the jconf.
jconf | [i/o] global jconf | |
lmconf | [in] LM configuration to register | |
name | [in] module name |
Definition at line 492 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.
Definition at line 543 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.
sconf | [in] SEARCH parameter structure |
Definition at line 568 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.
jconf | [i/o] global jconf | |
sconf | [in] SEARCH configuration to register | |
name | [in] module name |
Definition at line 594 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.
Definition at line 650 of file instance.c.
Referenced by j_config_load_args_new(), j_config_load_file_new(), j_output_argument_help(), and main().
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.
jconf | [in] global configuration parameter structure |
Definition at line 703 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.
jconf | [i/o] global configuration instance | |
argc | [in] number of arguments | |
argv | [in] list of argument strings |
Definition at line 337 of file jfunc.c.
Referenced by main().
Here is the caller graph for this function:
int j_config_load_file | ( | Jconf * | jconf, | |
char * | filename | |||
) |
Jconf* j_config_load_args_new | ( | int | argc, | |
char * | argv[] | |||
) |
Create a new configuration instance and load parameters from command argments.
argc | [in] number of arguments | |
argv | [in] list of argument strings |
Definition at line 435 of file jfunc.c.
Referenced by main().
Here is the caller graph for this function:
Jconf* j_config_load_file_new | ( | char * | filename | ) |
Get AM configuration structure in jconf by its name.
jconf | [in] global configuration | |
name | [in] AM module name |
Definition at line 751 of file jfunc.c.
Referenced by opt_parse().
Here is the caller graph for this function:
Get AM configuration structure in jconf by its id.
jconf | [in] global configuration | |
id | [in] AM module ID |
Definition at line 785 of file jfunc.c.
Referenced by opt_parse().
Here is the caller graph for this function:
Return default AM configuration.
If multiple AM configuration exists, return the latest one.
jconf | [in] global configuration |
Definition at line 822 of file jfunc.c.
Referenced by j_process_add_lm().
Here is the caller graph for this function:
Get LM configuration structure in jconf by its name.
jconf | [in] global configuration | |
name | [in] LM module name |
Definition at line 849 of file jfunc.c.
Referenced by opt_parse().
Here is the caller graph for this function:
Get LM configuration structure in jconf by its id.
jconf | [in] global configuration | |
id | [in] LM module ID |
Definition at line 883 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 | |||
) |
JCONF_SEARCH* j_get_searchconf_by_id | ( | Jconf * | jconf, | |
int | id | |||
) |
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.
jconf | [i/o] global jconf configuration structure |
Definition at line 95 of file m_chkparam.c.
Referenced by j_create_instance_from_jconf(), j_process_add_lm(), and main().
Here is the caller graph for this function: