Add bounds check for postprocess_utils.py abbr_dispose() (#2209)
"/Users/{USER}/.pyenv/versions/funasr_usage/lib/python3.12/site-packages/funasr/utils/postprocess_utils.py", line 127, in abbr_dispose
end = time_stamp[ts_nums[num]][1]
~~~~~~~~~~^^^^^^^^^^^^^^
IndexError: list index out of range
| | |
| | | abbr_word += words[num].upper() |
| | | num += 1 |
| | | word_lists.append(abbr_word) |
| | | if time_stamp is not None: |
| | | if time_stamp is not None and ts_nums[num] < len(time_stamp): |
| | | end = time_stamp[ts_nums[num]][1] |
| | | ts_lists.append([begin, end]) |
| | | else: |