From d1b1fdd520cd33f0fc297eaa6ee6f451a85781cd Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 28 三月 2024 10:17:50 +0800
Subject: [PATCH] Dev gzf new (#1555)

---
 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