pub unsafe extern "C" fn DS_EnableDecoderWithLM(
    aCtx: *mut ModelState,
    aAlphabetConfigPath: *const c_char,
    aLMPath: *const c_char,
    aTriePath: *const c_char,
    aLMWeight: f32,
    aValidWordCountWeight: f32
) -> c_int
Expand description

@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 aLMWeight The weight to give to language model results when sco- ring. @param aValidWordCountWeight The weight (bonus) to give to beams when adding a new valid word to the decoding.

@return Zero on success, non-zero on failure (invalid arguments).