[−][src]Function deepspeech_sys::DS_EnableDecoderWithLM
pub unsafe extern "C" fn DS_EnableDecoderWithLM(
aCtx: *mut ModelState,
aAlphabetConfigPath: *const c_char,
aLMPath: *const c_char,
aTriePath: *const c_char,
aLMAlpha: f32,
aLMBeta: f32
) -> c_int
@brief Enable decoding using beam scoring with a KenLM language model.
@param aCtx The ModelState pointer for the model being changed. @param aAlphabetConfigPath The path to the configuration file specifying the alphabet used by the network. See alphabet.h. @param aLMPath The path to the language model binary file. @param aTriePath The path to the trie file build from the same vocabu- lary as the language model binary. @param aLMAlpha The alpha hyperparameter of the CTC decoder. Language Model weight. @param aLMBeta The beta hyperparameter of the CTC decoder. Word insertion weight.
@return Zero on success, non-zero on failure (invalid arguments).