Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

fix: crash when using online mode with uninitialized jieba (#2663)

Gang Zhuo6244b743a70f
diff --git a/runtime/onnxruntime/src/ct-transformer-online.cpp b/runtime/onnxruntime/src/ct-transformer-online.cpp
index 83c03273a..3be99b845 100644
--- a/runtime/onnxruntime/src/ct-transformer-online.cpp
+++ b/runtime/onnxruntime/src/ct-transformer-online.cpp
@@ -29,6 +29,7 @@ void CTTransformerOnline::InitPunc(const std::string &punc_model, const std::str
GetOutputNames(m_session.get(), m_strOutputNames, m_szOutputNames);
m_tokenizer.OpenYaml(punc_config.c_str(), token_file.c_str());
+ m_tokenizer.JiebaInit(punc_config);
}
CTTransformerOnline::~CTTransformerOnline()