From 4f47a6cf0bbe65016b7f028e8ba2c7aef36eb3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=BE=E8=81=AA?= Date: Thu, 29 Jun 2023 14:29:17 +0800 Subject: [PATCH] fix uppercase --- funasr/runtime/onnxruntime/src/vocab.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/funasr/runtime/onnxruntime/src/vocab.cpp b/funasr/runtime/onnxruntime/src/vocab.cpp index 65af8b6f5..70553df1a 100644 --- a/funasr/runtime/onnxruntime/src/vocab.cpp +++ b/funasr/runtime/onnxruntime/src/vocab.cpp @@ -110,17 +110,16 @@ string Vocab::Vector2StringV2(vector in) 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(" ");