Skip to content

fix: align SentencePiece transcript pronoun casing - #3998

Merged
LauraGPT merged 1 commit into
modelscope:mainfrom
dongyikuan919:fix/sentencepiece-pronoun-case
Dec 1, 2026
Merged

LauraGPT merged 1 commit into
modelscope:mainfrom
dongyikuan919:fix/sentencepiece-pronoun-case

Conversation

@dongyikuan919

Copy link
Copy Markdown
Contributor

Summary

Fixes #3997. Use the existing English pronoun normalization when building the SentencePiece transcript in both the Python and ONNX postprocessors, so the transcript and word list agree for I, I'm, I've, and I'll.

Type of change

  • Bug fix

Validation

  • The new regression cases fail on the base for both implementations. Other lowercase words continue to pass.
  • The text-postprocessing workflow's test selection passed locally with the pinned dependencies on Python 3.10 and 3.12, 82 tests each.
  • python -m compileall funasr examples tests
  • git diff --check passed.

User impact

ONNX English BPE users get consistent capitalization in the transcript and the word list, including downstream consumers of the transcript string.

Notes for reviewers

The change reuses the existing word-list normalization and retains the spacing used to assemble the transcript. Validation uses decoded SentencePiece tokens without loading a model.

@LauraGPT
LauraGPT merged commit ece409b into modelscope:main Dec 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SentencePiece postprocessing returns different casing for the transcript and word list

2 participants