mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update postprocess_utils.py
This commit is contained in:
parent
4b4c1e15a7
commit
85e8e0ed0d
@ -225,7 +225,7 @@ def sentence_postprocess(words: List[Any], time_stamp: List[List] = None):
|
|||||||
ts_lists.append([begin, end])
|
ts_lists.append([begin, end])
|
||||||
begin = end
|
begin = end
|
||||||
else:
|
else:
|
||||||
raise ValueError('invalid character: {}'.format(ch))
|
word_lists.append(ch)
|
||||||
|
|
||||||
if time_stamp is not None:
|
if time_stamp is not None:
|
||||||
word_lists, ts_lists = abbr_dispose(word_lists, ts_lists)
|
word_lists, ts_lists = abbr_dispose(word_lists, ts_lists)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user