/** * <EN> * Fill in system default values to an AM parameter structure. * @param j [in] AM configuration parameter structure * </EN> * <JA> * AMパラメータ構造体に初期値を代入する. * * @param j [in] AMパラメータ構造体 * </JA> * * * @callgraph * @callergraph * */ void jconf_set_default_values_am(JCONF_AM *j) { j->name[0] = '\0'; j->hmmfilename = NULL; j->mapfilename = NULL; j->gprune_method = GPRUNE_SEL_UNDEF; j->mixnum_thres = 2; j->spmodel_name = NULL; j->hmm_gs_filename = NULL; j->gs_statenum = 24; j->iwcdmethod = IWCD_UNDEF; j->iwcdmaxn = 3; j->iwsp_penalty = -1.0; j->force_multipath = FALSE; undef_para(&(j->analysis.para)); undef_para(&(j->analysis.para_hmm)); undef_para(&(j->analysis.para_default)); undef_para(&(j->analysis.para_htk)); make_default_para(&(j->analysis.para_default)); make_default_para_htk(&(j->analysis.para_htk)); j->analysis.cmnload_filename = NULL; j->analysis.cmn_update = TRUE; j->analysis.cmnsave_filename = NULL; j->analysis.cmn_map_weight = 100.0; j->frontend.ss_alpha = DEF_SSALPHA; j->frontend.ss_floor = DEF_SSFLOOR; j->frontend.sscalc = FALSE; j->frontend.sscalc_len = 300; j->frontend.ssload_filename = NULL; }
/** * <EN> * Fill in system default values to an AM parameter structure. * @param j [in] AM configuration parameter structure * </EN> * <JA> * AMパラメータ構造体に初期値を代入する. * * @param j [in] AMパラメータ構造体 * </JA> * * * @callgraph * @callergraph * */ void jconf_set_default_values_am(JCONF_AM *j) { j->name[0] = '\0'; j->hmmfilename = NULL; j->mapfilename = NULL; j->gprune_method = GPRUNE_SEL_UNDEF; j->mixnum_thres = 2; j->spmodel_name = NULL; j->hmm_gs_filename = NULL; j->gs_statenum = 24; j->iwcdmethod = IWCD_UNDEF; j->iwcdmaxn = 3; j->iwsp_penalty = -1.0; j->force_multipath = FALSE; undef_para(&(j->analysis.para)); undef_para(&(j->analysis.para_hmm)); undef_para(&(j->analysis.para_default)); undef_para(&(j->analysis.para_htk)); make_default_para(&(j->analysis.para_default)); make_default_para_htk(&(j->analysis.para_htk)); j->analysis.cmnload_filename = NULL; j->analysis.map_cmn = TRUE; j->analysis.cmn_update = TRUE; j->analysis.cmnsave_filename = NULL; j->analysis.cmn_map_weight = 100.0; j->analysis.cmn_static_cvn_only = FALSE; j->frontend.ss_alpha = DEF_SSALPHA; j->frontend.ss_floor = DEF_SSFLOOR; j->frontend.sscalc = FALSE; j->frontend.sscalc_len = 300; j->frontend.ssload_filename = NULL; j->dnn.enabled = FALSE; j->dnn.paramtype = F_ERR_INVALID; j->dnn.optionstring = NULL; j->dnn.veclen = 0; j->dnn.contextlen = 0; j->dnn.inputnodes = 0; j->dnn.outputnodes = 0; j->dnn.hiddennodes = 0; j->dnn.hiddenlayernum = 0; j->dnn.wfile = NULL; j->dnn.bfile = NULL; j->dnn.output_wfile = NULL; j->dnn.output_bfile = NULL; j->dnn.priorfile = NULL; j->dnn.prior_factor = 1.0; j->dnn.batchsize = 1; j->dnn.num_threads = 2; }