mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
bug fix in timestamp inference
This commit is contained in:
parent
b091828cea
commit
eb9989745e
@ -717,7 +717,7 @@ def inference_paraformer_vad_punc(
|
||||
item = {'key': key, 'value': text_postprocessed_punc}
|
||||
if text_postprocessed != "":
|
||||
item['text_postprocessed'] = text_postprocessed
|
||||
if time_stamp_postprocessed != "" or len(time_stamp) == 0:
|
||||
if time_stamp_postprocessed != "":
|
||||
item['time_stamp'] = time_stamp_postprocessed
|
||||
|
||||
item['sentences'] = time_stamp_sentence(punc_id_list, time_stamp_postprocessed, text_postprocessed)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user