mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
fix(runtime): skip empty deduplicated event segments
Signed-off-by: LauraGPT <[email protected]>
This commit is contained in:
@@ -355,6 +355,8 @@ def rich_transcription_postprocess(s):
|
||||
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):
|
||||
|
||||
@@ -409,6 +409,8 @@ def rich_transcription_postprocess(s):
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user