Gang Zhuo
2025-09-20 6244b743a70f8ac152e6b8f517669671322da0a8
fix: crash when using online mode with uninitialized jieba (#2663)

Problem:
- Crash occurs with [punc_ct-transformer_cn-en-common-vocab471067-large-onnx](https://www.modelscope.cn/models/iic/punc_ct-transformer_cn-en-common-vocab471067-large-onnx) model
- Root cause: jieba is enabled but not properly initialized

Solution:
- Add jieba initialization before usage
1个文件已修改
1 ■■■■ 已修改文件
runtime/onnxruntime/src/ct-transformer-online.cpp 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/onnxruntime/src/ct-transformer-online.cpp
@@ -29,6 +29,7 @@
    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()