@@ -79,6 +79,10 @@ SherpaOnnxOnlineRecognizer *CreateOnlineRecognizer(
79
79
SHERPA_ONNX_OR (config->model_config .model_type , " " );
80
80
recognizer_config.model_config .debug =
81
81
SHERPA_ONNX_OR (config->model_config .debug , 0 );
82
+ recognizer_config.model_config .modeling_unit =
83
+ SHERPA_ONNX_OR (config->model_config .modeling_unit , " cjkchar" );
84
+ recognizer_config.model_config .bpe_vocab =
85
+ SHERPA_ONNX_OR (config->model_config .bpe_vocab , " " );
82
86
83
87
recognizer_config.decoding_method =
84
88
SHERPA_ONNX_OR (config->decoding_method , " greedy_search" );
@@ -357,6 +361,10 @@ SherpaOnnxOfflineRecognizer *CreateOfflineRecognizer(
357
361
SHERPA_ONNX_OR (config->model_config .provider , " cpu" );
358
362
recognizer_config.model_config .model_type =
359
363
SHERPA_ONNX_OR (config->model_config .model_type , " " );
364
+ recognizer_config.model_config .modeling_unit =
365
+ SHERPA_ONNX_OR (config->model_config .modeling_unit , " cjkchar" );
366
+ recognizer_config.model_config .bpe_vocab =
367
+ SHERPA_ONNX_OR (config->model_config .bpe_vocab , " " );
360
368
361
369
recognizer_config.lm_config .model =
362
370
SHERPA_ONNX_OR (config->lm_config .model , " " );
0 commit comments