Skip to content

Fix Chinese money normalization for grouped and decimal values - #491

Open
HungerDeng wants to merge 1 commit into
NVIDIA:mainfrom
HungerDeng:fix/zh-money-normalization
Open

HungerDeng wants to merge 1 commit into
NVIDIA:mainfrom
HungerDeng:fix/zh-money-normalization

Conversation

@HungerDeng

Copy link
Copy Markdown

Summary

  • Normalize comma-separated Chinese money values as a single amount.
  • Preserve multi-digit integer parts when normalizing decimal money values.
  • Add regression coverage for grouped, decimal, combined, suffix-currency, and sentence-level cases.

Validation

  • 30 Chinese money normalization data cases checked; 0 failures.

Notes

  • Existing unstaged dependency and untracked artifact changes were not included.

Keep comma-separated and decimal amounts within a single Chinese money token so values such as `$1,234` and `$1234.0` are verbalized correctly.

Add regression coverage for grouped integers, multi-digit decimals, combined forms, suffix currencies, and sentence contexts.
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.

1 participant