From e175dae50b1346aa0abf481808862f43b3f5b2e4 Mon Sep 17 00:00:00 2001
From: Anjali Barge <bargeanjali650@gmail.com>
Date: 星期六, 20 九月 2025 22:39:57 +0800
Subject: [PATCH] examples: add improved batch_asr CLI example with error handling (#2675)

---
 runtime/onnxruntime/src/tokenizer.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/onnxruntime/src/tokenizer.h b/runtime/onnxruntime/src/tokenizer.h
index 166061b..81aea7e 100644
--- a/runtime/onnxruntime/src/tokenizer.h
+++ b/runtime/onnxruntime/src/tokenizer.h
@@ -8,6 +8,7 @@
 #include "cppjieba/DictTrie.hpp"
 #include "cppjieba/HMMModel.hpp"
 #include "cppjieba/Jieba.hpp"
+#include "nlohmann/json.hpp"
 
 namespace funasr {
 class CTokenizer {
@@ -27,6 +28,7 @@
 	CTokenizer();
 	~CTokenizer();
 	bool OpenYaml(const char* sz_yamlfile);
+	bool OpenYaml(const char* sz_yamlfile, const char* token_file);
 	void ReadYaml(const YAML::Node& node);
 	vector<string> Id2String(vector<int> input);
 	vector<int> String2Ids(vector<string> input);

--
Gitblit v1.9.1