From ffb05b9ae7eccc47416e9e7fae9dea54d400a245 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 10 八月 2023 19:05:51 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main

---
 funasr/runtime/onnxruntime/src/vocab.cpp |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/vocab.cpp b/funasr/runtime/onnxruntime/src/vocab.cpp
index 65af8b6..70553df 100644
--- a/funasr/runtime/onnxruntime/src/vocab.cpp
+++ b/funasr/runtime/onnxruntime/src/vocab.cpp
@@ -110,17 +110,16 @@
             else {
                 // pre word is chinese
                 if (!is_pre_english) {
-                    word[0] = word[0] - 32;
+                    // word[0] = word[0] - 32;
                     words.push_back(word);
                     pre_english_len = word.size();
-
                 }
                 // pre word is english word
                 else {
                     // single letter turn to upper case
-                    if (word.size() == 1) {
-                        word[0] = word[0] - 32;
-                    }
+                    // if (word.size() == 1) {
+                    //     word[0] = word[0] - 32;
+                    // }
 
                     if (pre_english_len > 1) {
                         words.push_back(" ");

--
Gitblit v1.9.1