Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
modify abbr postprocess
lzr2659462ab8b7f473d3
diff --git a/funasr/utils/postprocess_utils.py b/funasr/utils/postprocess_utils.pyindex 2475548f1..40756d857 100644--- a/funasr/utils/postprocess_utils.py+++ b/funasr/utils/postprocess_utils.py@@ -106,17 +106,18 @@ def abbr_dispose(words: List[Any], time_stamp: List[List] = None) -> List[Any]:if num in abbr_begin:if time_stamp is not None:begin = time_stamp[ts_nums[num]][0]- word_lists.append(words[num].upper())+ abbr_word = words[num].upper()num += 1while num < words_size:if num in abbr_end:- word_lists.append(words[num].upper())+ abbr_word += words[num].upper()last_num = numbreakelse:if words[num].encode('utf-8').isalpha():- word_lists.append(words[num].upper())+ abbr_word += words[num].upper()num += 1+ word_lists.append(abbr_word)if time_stamp is not None:end = time_stamp[ts_nums[num]][1]ts_lists.append([begin, end])