From 810046e3df4910c8f5c1a90e4b53aca45b3397e8 Mon Sep 17 00:00:00 2001
From: wuhongsheng <664116298@qq.com>
Date: 星期一, 01 七月 2024 10:42:58 +0800
Subject: [PATCH] 优化merge segments 参数,解决新闻联播男女主持人“晚上好”合并一个speakid问题 (#1861)

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

diff --git a/runtime/onnxruntime/src/util.h b/runtime/onnxruntime/src/util.h
index eda9b49..bb4e21a 100644
--- a/runtime/onnxruntime/src/util.h
+++ b/runtime/onnxruntime/src/util.h
@@ -45,7 +45,7 @@
 bool TimestampIsPunctuation(const std::string& str);
 void TimestampSplitChiEngCharacters(const std::string &input_str,
                                   std::vector<std::string> &characters);
-std::string VectorToString(const std::vector<std::vector<int>>& vec);                                  
+std::string VectorToString(const std::vector<std::vector<int>>& vec, bool out_empty=true);                                  
 std::string TimestampSmooth(std::string &text, std::string &text_itn, std::string &str_time);
 std::string TimestampSentence(std::string &text, std::string &str_time);
 std::vector<std::string> split(const std::string &s, char delim);

--
Gitblit v1.9.1