[Bug]: ASR WER normalization splits words at combining marks

Aperta
#23,256 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@JunkaiWang-TheoPhy ci sta già lavorando.

Dal 2/12/2026.

  • #23257 di @JunkaiWang-TheoPhy — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
data

Direzione di ricerca

The issue names tensorrt_llm.evaluate.audio_asr._compute_wer and includes a reproduction that needs no model or GPU. Start by reading the ASR normalizer used there and run the supplied example. Done means combining marks are removed without splitting words, punctuation still separates words, and the normalized words produce WER 0%; linked pull request #23257 is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

System Info

TensorRT-LLM main at f06c84da4cad0814ab0bfa0b154187a325cb9f5d. Reproduced on Python 3.12/macOS ARM64 with the production ASR scoring code and unrelated TensorRT initialization bypassed. It needs no model, audio data, or GPU.

Reproduction
from tensorrt_llm.evaluate.audio_asr import _compute_wer

wer, (result,) = _compute_wer(["naïve"], ["naive"])
print(result.normalized_prediction, result.normalized_reference)
print(result.edits, result.reference_words, wer)
Expected behavior

The ASR normalizer removes combining marks. The words should both normalize to naive, with no edit and WER 0%. Existing punctuation separators should continue separating words.

Actual behavior

The prediction becomes nai ve; the reference remains naive. The scorer reports two edits against one reference word, or 200% WER. The same word-boundary issue changes reference word counts when the reference has the accent.

Additional notes

NFKD decomposes the accent into a combining mark. Replacing that mark with a space splits a word; it needs to be deleted. GitHub searches for the normalizer and ASR combining marks did not find an equivalent fix. OpenAI Codex assisted with reproduction.

Lingua principale
Python
Stelle
15.2k
Fork
3k
Merge medio
2g 21h
PR unite (30g)
477

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.