mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix postprocess for en-bpe
This commit is contained in:
parent
6351010c39
commit
6161129cce
@ -163,6 +163,13 @@ string Vocab::Vector2StringV2(vector<int> in, std::string language)
|
||||
}
|
||||
}
|
||||
|
||||
if (language == "en-bpe" and combine != ""){
|
||||
if (words.size() != 0){
|
||||
combine = " " + combine;
|
||||
}
|
||||
words.push_back(combine);
|
||||
}
|
||||
|
||||
stringstream ss;
|
||||
for (auto it = words.begin(); it != words.end(); it++) {
|
||||
ss << *it;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user