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

未关闭
#23,256 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@JunkaiWang-TheoPhy 已经在做这个了。

开始于 2026年12月2日。

  • #23257 来自 @JunkaiWang-TheoPhy —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
15.2k
派生
3k
平均合并
2 天 21 小时
30 天内合并 PR
477

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/TensorRT-LLM 的其他 Issue

查看 NVIDIA/TensorRT-LLM 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。