mstar.model.qwen3_asr.repetition#
Collapse the repetition loops Qwen3-ASR can fall into, as the reference SDK does.
A port of detect_and_fix_repetitions from qwen-asr 0.0.6
(qwen_asr/inference/utils.py, Apache-2.0), which parse_asr_output runs
on every raw transcript. Same output, as two regular expressions instead of a
Python loop per character, which took 126 ms (vs 10 ms) on a 19k-character
transcript, on the API server’s event loop.
Functions
|
|