Function deepspeech_sys::DS_SetScorerAlphaBeta
source · [−]pub unsafe extern "C" fn DS_SetScorerAlphaBeta(
aCtx: *mut ModelState,
aAlpha: f32,
aBeta: f32
) -> c_int
Expand description
@brief Set hyperparameters alpha and beta of the external scorer.
@param aCtx The ModelState pointer for the model being changed. @param aAlpha The alpha hyperparameter of the decoder. Language model weight. @param aLMBeta The beta hyperparameter of the decoder. Word insertion weight.
@return Zero on success, non-zero on failure.