From 85e8e0ed0dc9ff0e1d10cbef47b2ee849880d17e Mon Sep 17 00:00:00 2001 From: hnluo Date: Mon, 27 Mar 2023 17:15:10 +0800 Subject: [PATCH] Update postprocess_utils.py --- funasr/utils/postprocess_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funasr/utils/postprocess_utils.py b/funasr/utils/postprocess_utils.py index 40756d857..b607e1da0 100644 --- a/funasr/utils/postprocess_utils.py +++ b/funasr/utils/postprocess_utils.py @@ -225,7 +225,7 @@ def sentence_postprocess(words: List[Any], time_stamp: List[List] = None): ts_lists.append([begin, end]) begin = end else: - raise ValueError('invalid character: {}'.format(ch)) + word_lists.append(ch) if time_stamp is not None: word_lists, ts_lists = abbr_dispose(word_lists, ts_lists)