|
Functions | |
| boolean | j_regist_user_lm_func (PROCESS_LM *lm, LOGPROB(*unifunc)(WORD_INFO *winfo, WORD_ID w, LOGPROB ngram_prob), LOGPROB(*bifunc)(WORD_INFO *winfo, WORD_ID context, WORD_ID w, LOGPROB ngram_prob), LOGPROB(*probfunc)(WORD_INFO *winfo, WORD_ID *contexts, int context_len, WORD_ID w, LOGPROB ngram_prob)) |
| Assign user-defined language scoring functions into a LM processing instance. | |
| boolean | j_regist_user_param_func (Recog *recog, boolean(*user_calc_vector)(MFCCCalc *, SP16 *, int)) |
| Assign a user-defined parameter extraction function to engine instance. | |
| boolean j_regist_user_lm_func | ( | PROCESS_LM * | lm, | |
| LOGPROB(*)(WORD_INFO *winfo, WORD_ID w, LOGPROB ngram_prob) | unifunc, | |||
| LOGPROB(*)(WORD_INFO *winfo, WORD_ID context, WORD_ID w, LOGPROB ngram_prob) | bifunc, | |||
| LOGPROB(*)(WORD_INFO *winfo, WORD_ID *contexts, int context_len, WORD_ID w, LOGPROB ngram_prob) | probfunc | |||
| ) |
Assign user-defined language scoring functions into a LM processing instance.
This should be called after engine instance creation and before j_final_fusion() is called. Remember that you should also specify "-userlm" option at jconf to use user-define language scoring.
| lm | [i/o] LM processing instance | |
| unifunc | [in] pointer to the user-defined unigram function | |
| bifunc | [in] pointer to the user-defined bi-igram function | |
| probfunc | [in] pointer to the user-defined N-gram function |
1.5.4