mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
commit
59b4708aa6
@ -293,7 +293,7 @@ def inference_modelscope(
|
|||||||
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
|
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
|
||||||
postprocessed_result[1], \
|
postprocessed_result[1], \
|
||||||
postprocessed_result[2]
|
postprocessed_result[2]
|
||||||
text_postprocessed_punc = ""
|
text_postprocessed_punc = text_postprocessed
|
||||||
if len(word_lists) > 0 and text2punc is not None:
|
if len(word_lists) > 0 and text2punc is not None:
|
||||||
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)
|
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)
|
||||||
|
|
||||||
|
|||||||
@ -612,7 +612,7 @@ def inference_modelscope(
|
|||||||
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
|
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
|
||||||
postprocessed_result[1], \
|
postprocessed_result[1], \
|
||||||
postprocessed_result[2]
|
postprocessed_result[2]
|
||||||
text_postprocessed_punc = ""
|
text_postprocessed_punc = text_postprocessed
|
||||||
if len(word_lists) > 0 and text2punc is not None:
|
if len(word_lists) > 0 and text2punc is not None:
|
||||||
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)
|
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user