![]() |
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 336 of file instance.c.
Referenced by j_jconf_new(), and opt_parse().
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 363 of file instance.c.
Referenced by j_jconf_free(), j_process_am_remove(), and opt_parse().
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 389 of file instance.c.
Referenced by opt_parse().
JCONF_LM* j_jconf_lm_new | ( | ) |
Allocate a new language model (LM) parameter structure.
Default parameter values are set to it.
Definition at line 440 of file instance.c.
Referenced by j_jconf_new(), and opt_parse().
void j_jconf_lm_free | ( | JCONF_LM * | lmconf | ) |
Release a language model (LM) parameter structure.
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().
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 491 of file instance.c.
Referenced by j_process_add_lm(), and opt_parse().
JCONF_SEARCH* j_jconf_search_new | ( | ) |
Allocate a new search (SEARCH) parameter structure.
Default parameter values are set to it.
Definition at line 542 of file instance.c.
Referenced by j_jconf_new(), and opt_parse().
void j_jconf_search_free | ( | JCONF_SEARCH * | sconf | ) |
Release a search (SEARCH) parameter structure.
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().
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 593 of file instance.c.
Referenced by j_process_add_lm(), and opt_parse().
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 649 of file instance.c.
Referenced by j_config_load_args_new(), j_config_load_file_new(), and j_output_argument_help().
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 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().
int j_config_load_args | ( | Jconf * | jconf, | |
int | argc, | |||
char * | argv[] | |||
) |
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 417 of file jfunc.c.
Referenced by main().
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 773 of file jfunc.c.
Referenced by opt_parse().
Get AM configuration structure in jconf by its id.
jconf | [in] global configuration | |
id | [in] AM module ID |
Definition at line 807 of file jfunc.c.
Referenced by opt_parse().
Return default AM configuration.
If multiple AM configuration exists, return the latest one.
jconf | [in] global configuration |
Definition at line 844 of file jfunc.c.
Referenced by j_process_add_lm().
Get LM configuration structure in jconf by its name.
jconf | [in] global configuration | |
name | [in] LM module name |
Definition at line 871 of file jfunc.c.
Referenced by opt_parse().
Get LM configuration structure in jconf by its id.
jconf | [in] global configuration | |
id | [in] LM module ID |
Definition at line 905 of file jfunc.c.
Referenced by opt_parse().
JCONF_SEARCH* j_get_searchconf_by_name | ( | Jconf * | jconf, | |
char * | name | |||
) |
JCONF_SEARCH* j_get_searchconf_by_id | ( | Jconf * | jconf, | |
int | id | |||
) |
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.
jconf | [i/o] global jconf configuration structure |
Definition at line 95 of file m_chkparam.c.
Referenced by j_create_instance_from_jconf(), and j_process_add_lm().