shixian.shi
2023-03-09 c441eb08c44dfd4a7a8c68970fd3ebe7943d06ee
funasr/utils/timestamp_tools.py
@@ -4,6 +4,7 @@
import numpy as np
from typing import Any, List, Tuple, Union
def time_stamp_lfr6_pl(us_alphas, us_cif_peak, char_list, begin_time=0.0, end_time=None):
    if not len(char_list):
        return []
@@ -54,6 +55,7 @@
            res.append([int(timestamp[0] * 1000), int(timestamp[1] * 1000)])
    return res
def time_stamp_sentence(punc_id_list, time_stamp_postprocessed, text_postprocessed):
    res = []
    if text_postprocessed is None: