From 87b62d68957a2194b017a43b6c2a15424a05a984 Mon Sep 17 00:00:00 2001
From: Carl <415692979@qq.com>
Date: 星期三, 27 三月 2024 19:15:47 +0800
Subject: [PATCH] <funasr>: <punc online> (#1552)

---
 runtime/onnxruntime/src/ct-transformer-online.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/runtime/onnxruntime/src/ct-transformer-online.cpp b/runtime/onnxruntime/src/ct-transformer-online.cpp
index 2198667..a044901 100644
--- a/runtime/onnxruntime/src/ct-transformer-online.cpp
+++ b/runtime/onnxruntime/src/ct-transformer-online.cpp
@@ -122,7 +122,7 @@
     {
         if (i > 0 && !(sentence_words_list[i][0] & 0x80) && (i + 1) < sentence_words_list.size() && !(sentence_words_list[i + 1][0] & 0x80))
         {
-            sentence_words_list[i] = sentence_words_list[i] + " ";
+            sentence_words_list[i] = " " + sentence_words_list[i];
         }
         if (nSkipNum < arr_cache.size())  //    if skip_num < len(cache):
             nSkipNum++;

--
Gitblit v1.9.1