Skip to content

Fix WeTextProcessing build and add ITN (Inverse Text Normalization) support for iOS runtime#2809

Open
Ma-Dan wants to merge 2 commits intowenet-e2e:mainfrom
Ma-Dan:ios_fix
Open

Fix WeTextProcessing build and add ITN (Inverse Text Normalization) support for iOS runtime#2809
Ma-Dan wants to merge 2 commits intowenet-e2e:mainfrom
Ma-Dan:ios_fix

Conversation

@Ma-Dan
Copy link
Copy Markdown
Contributor

@Ma-Dan Ma-Dan commented Mar 24, 2026

[ios] Add ITN (Inverse Text Normalization) support for iOS runtime

  • Add ITN parameters to Wenet initialization method in wenet.h/wenet.mm
  • Load zh_itn_tagger.fst and zh_itn_verbalizer.fst for ITN processing
  • Update ViewController.swift to pass ITN file paths
  • Add debug logging to PostProcessor::Process for troubleshooting
  • Update README.md with ITN download and setup instructions

ITN converts spoken numbers to written form (e.g., "二点五" → "2.5").

To enable ITN, download FST files from WeTextProcessing:

Files modified:

  • runtime/ios/WenetDemo/WenetDemo/wenet/wenet.h
  • runtime/ios/WenetDemo/WenetDemo/wenet/wenet.mm
  • runtime/ios/WenetDemo/WenetDemo/ViewController.swift
  • runtime/ios/post_processor/post_processor.cc
  • runtime/ios/README.md

Dan added 2 commits March 23, 2026 22:27
- Add ITN parameters to Wenet initialization method in wenet.h/wenet.mm
- Load zh_itn_tagger.fst and zh_itn_verbalizer.fst for ITN processing
- Update ViewController.swift to pass ITN file paths
- Add debug logging to PostProcessor::Process for troubleshooting
- Update README.md with ITN download and setup instructions

ITN converts spoken numbers to written form (e.g., "二点五" → "2.5").

To enable ITN, download FST files from WeTextProcessing:
- https://github.com/wenet-e2e/WeTextProcessing/releases

Files modified:
- runtime/ios/WenetDemo/WenetDemo/wenet/wenet.h
- runtime/ios/WenetDemo/WenetDemo/wenet/wenet.mm
- runtime/ios/WenetDemo/WenetDemo/ViewController.swift
- runtime/ios/post_processor/post_processor.cc
- runtime/ios/README.md
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