shixian.shi
2024-01-22 7260053660abc68e62c0276cb19c842902967ec2
update infer
1个文件已修改
4 ■■■■ 已修改文件
funasr/models/seaco_paraformer/model.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/models/seaco_paraformer/model.py
@@ -415,12 +415,12 @@
                        token, timestamp)
                    result_i = {"key": key[i], "text": text_postprocessed,
                                "timestamp": time_stamp_postprocessed, "raw_text": text
                                "timestamp": time_stamp_postprocessed, "raw_text": copy.copy(text_postprocessed)
                                }
                    
                    if ibest_writer is not None:
                        ibest_writer["token"][key[i]] = " ".join(token)
                        ibest_writer["raw_text"][key[i]] = text
                        # ibest_writer["raw_text"][key[i]] = text
                        ibest_writer["timestamp"][key[i]] = time_stamp_postprocessed
                        ibest_writer["text"][key[i]] = text_postprocessed
                else: