Skip to content

Commit 9b9bf6a

Browse files
authored
[fix] fix module usage (#106)
1 parent 25ce8bc commit 9b9bf6a

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ cd WeTextProcessing
5656
# `overwrite_cache` will rebuild all rules according to
5757
# your modifications on tn/chinese/rules/xx.py (itn/chinese/rules/xx.py).
5858
# After rebuild, you can find new far files at `$PWD/tn` and `$PWD/itn`.
59-
python normalize.py --text "2.5平方电线" --overwrite_cache
60-
python inverse_normalize.py --text "二点五平方电线" --overwrite_cache
59+
python -m tn --text "2.5平方电线" --overwrite_cache
60+
python -m itn --text "二点五平方电线" --overwrite_cache
6161
```
6262

6363
Once you successfully rebuild your rules, you can deploy them either with your installed pypi packages:

inverse_normalize.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

normalize.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)