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

Open
#23,256 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@JunkaiWang-TheoPhy is already working on this.

Since Dec 2, 2026.

  • #23257 by @JunkaiWang-TheoPhy — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
data

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
15.2k
Forks
3k
Avg merge
2d 21h
Merged PRs (30d)
477

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/TensorRT-LLM

All issues in NVIDIA/TensorRT-LLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.