雾聪
2023-10-09 6161129cceb9492889b50b66ce83a483b3002036
fix postprocess for en-bpe
1个文件已修改
7 ■■■■■ 已修改文件
funasr/runtime/onnxruntime/src/vocab.cpp 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/onnxruntime/src/vocab.cpp
@@ -163,6 +163,13 @@
        }
    }
    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;