TnR2
2025-10-01 528f92f7a2a26cade1c57ccf26b0ba6524e7cae5
fix: handle empty strings after event removal in transcription processing (def rich_transcription_postprocess(s)) (#2681)

1个文件已修改
2 ■■■■■ 已修改文件
funasr/utils/postprocess_utils.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/utils/postprocess_utils.py
@@ -414,6 +414,8 @@
            continue
        if get_event(s_list[i]) == cur_ent_event and get_event(s_list[i]) != None:
            s_list[i] = s_list[i][1:]
        if len(s_list[i]) == 0:
            continue
        # else:
        cur_ent_event = get_event(s_list[i])
        if get_emo(s_list[i]) != None and get_emo(s_list[i]) == get_emo(new_s):