Merge pull request #87 from alibaba-damo-academy/dev_gzf

fix asr vad
This commit is contained in:
zhifu gao 2023-02-09 16:46:09 +08:00 committed by GitHub
commit 59b4708aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ def inference_modelscope(
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
postprocessed_result[1], \
postprocessed_result[2]
text_postprocessed_punc = ""
text_postprocessed_punc = text_postprocessed
if len(word_lists) > 0 and text2punc is not None:
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)

View File

@ -612,7 +612,7 @@ def inference_modelscope(
text_postprocessed, time_stamp_postprocessed, word_lists = postprocessed_result[0], \
postprocessed_result[1], \
postprocessed_result[2]
text_postprocessed_punc = ""
text_postprocessed_punc = text_postprocessed
if len(word_lists) > 0 and text2punc is not None:
text_postprocessed_punc, punc_id_list = text2punc(word_lists, 20)