mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix uppercase
This commit is contained in:
parent
31a847c0a2
commit
4f47a6cf0b
@ -110,17 +110,16 @@ string Vocab::Vector2StringV2(vector<int> 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(" ");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user