WeTextProcessing 1.0.4.1__tar.gz → 1.0.6.dev19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wetextprocessing-1.0.6.dev19/.clang-format +93 -0
- wetextprocessing-1.0.6.dev19/.flake8 +14 -0
- wetextprocessing-1.0.6.dev19/.github/workflows/unittest.yml +83 -0
- wetextprocessing-1.0.6.dev19/.github/workflows/wheels.yml +71 -0
- wetextprocessing-1.0.6.dev19/.gitignore +47 -0
- wetextprocessing-1.0.6.dev19/.pre-commit-config.yaml +23 -0
- wetextprocessing-1.0.6.dev19/CPPLINT.cfg +2 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/PKG-INFO +15 -9
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/WeTextProcessing.egg-info/PKG-INFO +15 -9
- wetextprocessing-1.0.6.dev19/WeTextProcessing.egg-info/SOURCES.txt +466 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/WeTextProcessing.egg-info/entry_points.txt +0 -1
- wetextprocessing-1.0.6.dev19/WeTextProcessing.egg-info/requires.txt +11 -0
- wetextprocessing-1.0.6.dev19/itn/README.md +60 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/__main__.py +1 -1
- wetextprocessing-1.0.6.dev19/itn/chinese/data/number/repeat_digit.tsv +322 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/time/minute.tsv +0 -9
- wetextprocessing-1.0.6.dev19/itn/chinese/data/time/minute_zero.tsv +9 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/data/train_number/prefix.tsv +7 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/inverse_normalizer.py +88 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/rules/cardinal.py +178 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/char.py +3 -3
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/date.py +16 -22
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/fraction.py +19 -12
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/license_plate.py +9 -13
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/math.py +9 -9
- wetextprocessing-1.0.6.dev19/itn/chinese/rules/measure.py +116 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/money.py +22 -18
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/postprocessor.py +5 -6
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/time.py +27 -16
- wetextprocessing-1.0.6.dev19/itn/chinese/rules/train_number.py +36 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/whitelist.py +5 -6
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/cardinal.txt +29 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/char.txt +2 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/date.txt +10 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/fraction.txt +3 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/license_plate.txt +3 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/math.txt +6 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/measure.txt +44 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/money.txt +11 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/normalizer.txt +33 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/normalizer_disable_standalone_number_disable_0_to_9.txt +42 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/normalizer_disable_standalone_number_enable_0_to_9.txt +11 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/normalizer_enable_standalone_number_disable_0_to_9.txt +42 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/number.txt +35 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/time.txt +12 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/train_number.txt +7 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/data/whitelist.txt +2 -0
- wetextprocessing-1.0.6.dev19/itn/chinese/test/normalizer_test.py +117 -0
- {WeTextProcessing-1.0.4.1/tn → wetextprocessing-1.0.6.dev19/itn}/chinese/test/utils.py +3 -3
- wetextprocessing-1.0.6.dev19/itn/japanese/data/char/common_chinese_char.tsv +2502 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/char/hiragana_and_katakana.tsv +160 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/char/oov_tags.tsv +1 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/char/punctuations_ja.tsv +72 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/date/day.tsv +31 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/date/month.tsv +12 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/date/week.tsv +14 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/default/whitelist.tsv +23 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/math/operator.tsv +8 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/measure/unit_en.tsv +123 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/measure/unit_ja.tsv +48 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/money/symbol.tsv +9 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/digit.tsv +9 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/dot.tsv +1 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/hundred.tsv +1 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/hundred_digit.tsv +9 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/sign.tsv +4 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/teen.tsv +10 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/thousands.tsv +9 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/ties.tsv +8 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/number/zero.tsv +4 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/time/hour.tsv +34 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/time/minute.tsv +60 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/data/time/second.tsv +60 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/inverse_normalizer.py +96 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/cardinal.py +158 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/char.py +29 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/date.py +71 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/fraction.py +64 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/math.py +39 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/measure.py +48 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/money.py +45 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/ordinal.py +34 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/postprocessor.py +46 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/preprocessor.py +31 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/time.py +53 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/rules/whitelist.py +33 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/cardinal.txt +57 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/char.txt +2 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/date.txt +13 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/fraction.txt +8 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/math.txt +6 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/measure.txt +6 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/money.txt +1 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/normalizer_disable_standalone_number_disable_0_to_9.txt +72 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/normalizer_disable_standalone_number_enable_0_to_9.txt +72 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/normalizer_enable_standalone_number_disable_0_to_9.txt +70 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/number.txt +11 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/time.txt +9 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/data/whitelist.txt +2 -0
- wetextprocessing-1.0.6.dev19/itn/japanese/test/normalizer_test.py +113 -0
- {WeTextProcessing-1.0.4.1/tn/english → wetextprocessing-1.0.6.dev19/itn/japanese}/test/utils.py +3 -3
- wetextprocessing-1.0.6.dev19/itn/main.py +72 -0
- wetextprocessing-1.0.6.dev19/itn/zh_itn_tagger.fst +0 -0
- wetextprocessing-1.0.6.dev19/itn/zh_itn_verbalizer.fst +0 -0
- wetextprocessing-1.0.6.dev19/pyproject.toml +57 -0
- wetextprocessing-1.0.6.dev19/runtime/CMakeLists.txt +38 -0
- wetextprocessing-1.0.6.dev19/runtime/README.md +28 -0
- wetextprocessing-1.0.6.dev19/runtime/android/.gitignore +15 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/.gitignore +2 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/build.gradle +105 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/proguard-rules.pro +21 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/androidTest/java/com/mobvoi/WeTextProcessing/ExampleInstrumentedTest.java +26 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/AndroidManifest.xml +22 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/assets/README.md +1 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/cpp/CMakeLists.txt +22 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/cpp/wetextprocessing.cc +80 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/java/com/mobvoi/WeTextProcessing/MainActivity.java +78 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/java/com/mobvoi/WeTextProcessing/WeTextProcessing.java +12 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +30 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/layout/activity_main.xml +59 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/values/attrs.xml +17 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/values/colors.xml +16 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/values/strings.xml +3 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/values/themes.xml +16 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/main/res/values-night/themes.xml +16 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/src/test/java/com/mobvoi/WeTextProcessing/ExampleUnitTest.java +17 -0
- wetextprocessing-1.0.6.dev19/runtime/android/app/wenet.keystore +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/build.gradle +21 -0
- wetextprocessing-1.0.6.dev19/runtime/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- wetextprocessing-1.0.6.dev19/runtime/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- wetextprocessing-1.0.6.dev19/runtime/android/gradle.properties +19 -0
- wetextprocessing-1.0.6.dev19/runtime/android/gradlew +234 -0
- wetextprocessing-1.0.6.dev19/runtime/android/gradlew.bat +89 -0
- wetextprocessing-1.0.6.dev19/runtime/android/settings.gradle +2 -0
- wetextprocessing-1.0.6.dev19/runtime/bin/CMakeLists.txt +3 -0
- wetextprocessing-1.0.6.dev19/runtime/bin/processor_main.cc +57 -0
- wetextprocessing-1.0.6.dev19/runtime/cmake/gflags.cmake +8 -0
- wetextprocessing-1.0.6.dev19/runtime/cmake/glog.cmake +6 -0
- wetextprocessing-1.0.6.dev19/runtime/cmake/gtest.cmake +8 -0
- wetextprocessing-1.0.6.dev19/runtime/cmake/openfst.cmake +43 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/CPPLINT.cfg +1 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/CMakeLists.txt +23 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/extensions/special/CMakeLists.txt +67 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/include/fst/flags.h +219 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/include/fst/log.h +78 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/lib/flags.cc +160 -0
- wetextprocessing-1.0.6.dev19/runtime/patch/openfst/src/test/CMakeLists.txt +55 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/CMakeLists.txt +22 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_processor.cc +83 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_processor.h +51 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_processor_c_api.cc +64 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_processor_c_api.h +46 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_token_parser.cc +167 -0
- wetextprocessing-1.0.6.dev19/runtime/processor/wetext_token_parser.h +96 -0
- wetextprocessing-1.0.6.dev19/runtime/test/CMakeLists.txt +18 -0
- wetextprocessing-1.0.6.dev19/runtime/test/processor_test.cc +72 -0
- wetextprocessing-1.0.6.dev19/runtime/test/string_test.cc +45 -0
- wetextprocessing-1.0.6.dev19/runtime/test/token_parser_test.cc +103 -0
- wetextprocessing-1.0.6.dev19/runtime/utils/CMakeLists.txt +3 -0
- wetextprocessing-1.0.6.dev19/runtime/utils/wetext_flags.h +23 -0
- wetextprocessing-1.0.6.dev19/runtime/utils/wetext_log.h +23 -0
- wetextprocessing-1.0.6.dev19/runtime/utils/wetext_string.cc +89 -0
- wetextprocessing-1.0.6.dev19/runtime/utils/wetext_string.h +42 -0
- wetextprocessing-1.0.6.dev19/tn/README.md +69 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/__main__.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/_version.py +34 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/data/char/fullwidth_to_halfwidth.tsv +95 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/measure/units_en.tsv +1 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/measure/units_zh.tsv +1 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/normalizer.py +104 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/rules/cardinal.py +92 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/char.py +3 -3
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/date.py +21 -19
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/fraction.py +19 -11
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/math.py +8 -13
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/measure.py +23 -26
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/money.py +19 -11
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/postprocessor.py +14 -25
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/preprocessor.py +5 -6
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/sport.py +14 -14
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/time.py +23 -16
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/rules/whitelist.py +9 -10
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/cardinal_test.py +2 -2
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/char_test.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/cardinal.txt +7 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/char.txt +2 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/date.txt +14 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/fraction.txt +3 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/math.txt +8 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/measure.txt +10 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/money.txt +3 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/normalizer.txt +48 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/number.txt +27 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/postprocessor.txt +5 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/preprocessor.txt +1 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/sport.txt +3 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/time.txt +6 -0
- wetextprocessing-1.0.6.dev19/tn/chinese/test/data/whitelist.txt +4 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/date_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/fraction_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/math_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/measure_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/money_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/normalizer_test.py +13 -11
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/postprocessor_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/preprocessor_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/sport_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/time_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/token_parser_test.py +22 -22
- {WeTextProcessing-1.0.4.1/itn → wetextprocessing-1.0.6.dev19/tn}/chinese/test/utils.py +3 -3
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/whitelist_test.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/en_tn_tagger.fst +0 -0
- wetextprocessing-1.0.6.dev19/tn/en_tn_verbalizer.fst +0 -0
- wetextprocessing-1.0.6.dev19/tn/english/data/roman/README.md +20 -0
- wetextprocessing-1.0.6.dev19/tn/english/data/telephone/__init__.py +0 -0
- wetextprocessing-1.0.6.dev19/tn/english/data/whitelist/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/tts.tsv +0 -19
- wetextprocessing-1.0.6.dev19/tn/english/normalizer.py +94 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/__init__.py +0 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/cardinal.py +173 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/date.py +352 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/decimal.py +192 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/electronic.py +199 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/fraction.py +122 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/measure.py +354 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/rules/money.py +34 -44
- wetextprocessing-1.0.6.dev19/tn/english/rules/ordinal.py +91 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/rules/punctuation.py +25 -32
- wetextprocessing-1.0.6.dev19/tn/english/rules/range.py +131 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/rules/roman.py +52 -42
- wetextprocessing-1.0.6.dev19/tn/english/rules/telephone.py +165 -0
- wetextprocessing-1.0.6.dev19/tn/english/rules/time.py +188 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/rules/whitelist.py +30 -43
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/rules/word.py +8 -15
- wetextprocessing-1.0.6.dev19/tn/english/test/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/cardinal_test.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/english/test/data/cardinal.txt +27 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/date.txt +14 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/decimal.txt +3 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/electronic.txt +1 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/fraction.txt +7 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/measure.txt +7 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/money.txt +8 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/normalizer.txt +8 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/ordinal.txt +11 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/range.txt +1 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/roman.txt +1 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/telephone.txt +2 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/time.txt +9 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/whitelist.txt +6 -0
- wetextprocessing-1.0.6.dev19/tn/english/test/data/word.txt +6 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/date_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/decimal_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/electronic_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/fraction_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/measure_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/money_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/normalizer_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/ordinal_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/range_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/roman_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/telephone_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/time_test.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/english/test/utils.py +32 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/whitelist_test.py +1 -1
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/test/word_test.py +1 -1
- wetextprocessing-1.0.6.dev19/tn/japanese/__init__.py +0 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/char/common_chinese_char.tsv +2502 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/char/fullwidth_to_halfwidth.tsv +95 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/char/hiragana_and_katakana.tsv +160 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/char/oov_tags.tsv +1 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/char/punctuations_ja.tsv +72 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/date/d.tsv +31 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/date/date.tsv +7 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/date/dd.tsv +9 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/date/m.tsv +12 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/date/mm.tsv +9 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/default/blacklist.tsv +0 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/default/whitelist.tsv +14 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/math/operator.tsv +12 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/measure/units_en.tsv +101 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/measure/units_ja.tsv +45 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/money/code.tsv +24 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/money/symbol.tsv +11 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/digit.tsv +18 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/dot.tsv +1 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/en_digit.tsv +18 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/sign.tsv +3 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/teen.tsv +18 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/number/zero.tsv +2 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/pyopenjtalk/transliteration.tsv +6791 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/sport/club.tsv +31 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/sport/country.tsv +185 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/time/hour.tsv +35 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/time/minute.tsv +60 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/time/noon.tsv +10 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/data/time/second.tsv +60 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/normalizer.py +106 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/cardinal.py +132 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/char.py +29 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/date.py +67 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/fraction.py +49 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/math.py +37 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/measure.py +48 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/money.py +51 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/postprocessor.py +46 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/preprocessor.py +31 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/sport.py +50 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/time.py +54 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/transliteration.py +33 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/rules/whitelist.py +36 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/__init__.py +0 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/cardinal.txt +41 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/char.txt +2 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/date.txt +28 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/fraction.txt +3 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/math.txt +26 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/measure.txt +11 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/money.txt +7 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/sport.txt +9 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/time.txt +10 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/data/whitelist.txt +4 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/normalizer_test.py +42 -0
- wetextprocessing-1.0.6.dev19/tn/japanese/test/utils.py +32 -0
- wetextprocessing-1.0.6.dev19/tn/main.py +73 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/processor.py +31 -34
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/token_parser.py +26 -27
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/utils.py +6 -14
- wetextprocessing-1.0.6.dev19/tn/zh_tn_tagger.fst +0 -0
- wetextprocessing-1.0.6.dev19/tn/zh_tn_verbalizer.fst +0 -0
- WeTextProcessing-1.0.4.1/WeTextProcessing.egg-info/SOURCES.txt +0 -216
- WeTextProcessing-1.0.4.1/WeTextProcessing.egg-info/requires.txt +0 -2
- WeTextProcessing-1.0.4.1/itn/chinese/inverse_normalizer.py +0 -82
- WeTextProcessing-1.0.4.1/itn/chinese/rules/cardinal.py +0 -165
- WeTextProcessing-1.0.4.1/itn/chinese/rules/measure.py +0 -103
- WeTextProcessing-1.0.4.1/itn/chinese/test/normalizer_test.py +0 -109
- WeTextProcessing-1.0.4.1/itn/main.py +0 -74
- WeTextProcessing-1.0.4.1/itn/zh_itn_tagger.fst +0 -0
- WeTextProcessing-1.0.4.1/itn/zh_itn_verbalizer.fst +0 -0
- WeTextProcessing-1.0.4.1/setup.py +0 -54
- WeTextProcessing-1.0.4.1/tn/chinese/normalizer.py +0 -96
- WeTextProcessing-1.0.4.1/tn/chinese/rules/cardinal.py +0 -86
- WeTextProcessing-1.0.4.1/tn/en_tn_tagger.fst +0 -0
- WeTextProcessing-1.0.4.1/tn/en_tn_verbalizer.fst +0 -0
- WeTextProcessing-1.0.4.1/tn/english/normalizer.py +0 -112
- WeTextProcessing-1.0.4.1/tn/english/rules/cardinal.py +0 -186
- WeTextProcessing-1.0.4.1/tn/english/rules/date.py +0 -319
- WeTextProcessing-1.0.4.1/tn/english/rules/decimal.py +0 -194
- WeTextProcessing-1.0.4.1/tn/english/rules/electronic.py +0 -213
- WeTextProcessing-1.0.4.1/tn/english/rules/fraction.py +0 -139
- WeTextProcessing-1.0.4.1/tn/english/rules/measure.py +0 -327
- WeTextProcessing-1.0.4.1/tn/english/rules/ordinal.py +0 -96
- WeTextProcessing-1.0.4.1/tn/english/rules/range.py +0 -138
- WeTextProcessing-1.0.4.1/tn/english/rules/telephone.py +0 -180
- WeTextProcessing-1.0.4.1/tn/english/rules/time.py +0 -167
- WeTextProcessing-1.0.4.1/tn/main.py +0 -90
- WeTextProcessing-1.0.4.1/tn/zh_tn_tagger.fst +0 -0
- WeTextProcessing-1.0.4.1/tn/zh_tn_verbalizer.fst +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/LICENSE +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/README.md +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/WeTextProcessing.egg-info/dependency_links.txt +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/WeTextProcessing.egg-info/top_level.txt +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/date/dd.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/date/mm.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/default/blacklist.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/default/whitelist.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/license_plate/province.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/math/operator.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/measure/units_en.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/measure/units_zh.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/money/code.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/money/symbol.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/digit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/digit_zh.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/dot.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/sign.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/special_dash.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/special_tilde.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/number/zero.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/time/hour.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/time/noon.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/data/time/second.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/rules/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/itn/chinese/test/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn → wetextprocessing-1.0.6.dev19/itn/japanese}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn/chinese → wetextprocessing-1.0.6.dev19/itn/japanese}/data/char/fullwidth_to_halfwidth.tsv +0 -0
- /WeTextProcessing-1.0.4.1/tn/chinese/__init__.py → /wetextprocessing-1.0.6.dev19/itn/japanese/data/default/blacklist.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/chinese → wetextprocessing-1.0.6.dev19/itn/japanese}/rules/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn/english → wetextprocessing-1.0.6.dev19/itn/japanese/test}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/setup.cfg +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data → wetextprocessing-1.0.6.dev19/tn}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/date → wetextprocessing-1.0.6.dev19/tn/chinese}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/char/charset_extension.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/char/charset_national_standard_2013_8105.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/char/punctuations_zh.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/char/traditional_to_simple.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/date/d.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/date/dd.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/date/m.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/date/mm.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/default/blacklist.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/default/whitelist.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/erhua/whitelist.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/math/operator.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/money/code.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/money/symbol.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/number/digit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/number/dot.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/number/sign.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/number/teen.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/number/zero.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/sport/club.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/sport/country.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/time/hour.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/time/minute.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/time/noon.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/data/time/second.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/electronic → wetextprocessing-1.0.6.dev19/tn/chinese/rules}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/chinese/test/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/money → wetextprocessing-1.0.6.dev19/tn/english}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/ordinal → wetextprocessing-1.0.6.dev19/tn/english/data}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/address/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/address/address_word.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/address/state.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/roman → wetextprocessing-1.0.6.dev19/tn/english/data/date}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/day.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/month_abbr.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/month_name.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/month_number.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/week.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/date/year_suffix.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/telephone → wetextprocessing-1.0.6.dev19/tn/english/data/electronic}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/electronic/domain.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/electronic/symbol.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/electronic/words.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/measure/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/measure/math_operation.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/measure/unit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/measure/unit_alternatives.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/data/whitelist → wetextprocessing-1.0.6.dev19/tn/english/data/money}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/money/currency_major.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/money/currency_minor_plural.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/money/currency_minor_singular.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/money/per_unit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/cardinal_number_name.far +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/cardinal_number_name_au.far +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/digit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/fraction.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/hundred.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/quantity_abbr.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/teen.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/thousand.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/ty.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/number/zero.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/rules → wetextprocessing-1.0.6.dev19/tn/english/data/ordinal}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/ordinal/digit.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/ordinal/teen.tsv +0 -0
- {WeTextProcessing-1.0.4.1/tn/english/test → wetextprocessing-1.0.6.dev19/tn/english/data/roman}/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/roman/female.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/roman/key_word.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/roman/male.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/roman/roman_to_spoken.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/suppletive.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/telephone/ip_prompt.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/telephone/ssn_prompt.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/telephone/telephone_prompt.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/time/__init__.py +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/time/suffix.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/time/zone.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/alternatives.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/alternatives_all_format.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/asr.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/asr_with_pc.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/ipa_symbols.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/lj_speech.tsv +0 -0
- {WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/tn/english/data/whitelist/symbol.tsv +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
Language: Cpp
|
|
3
|
+
# BasedOnStyle: Google
|
|
4
|
+
AccessModifierOffset: -1
|
|
5
|
+
AlignAfterOpenBracket: Align
|
|
6
|
+
AlignConsecutiveAssignments: false
|
|
7
|
+
AlignConsecutiveDeclarations: false
|
|
8
|
+
AlignEscapedNewlinesLeft: true
|
|
9
|
+
AlignOperands: true
|
|
10
|
+
AlignTrailingComments: true
|
|
11
|
+
AllowAllParametersOfDeclarationOnNextLine: true
|
|
12
|
+
AllowShortBlocksOnASingleLine: false
|
|
13
|
+
AllowShortCaseLabelsOnASingleLine: false
|
|
14
|
+
AllowShortFunctionsOnASingleLine: All
|
|
15
|
+
AllowShortIfStatementsOnASingleLine: true
|
|
16
|
+
AllowShortLoopsOnASingleLine: true
|
|
17
|
+
AlwaysBreakAfterDefinitionReturnType: None
|
|
18
|
+
AlwaysBreakAfterReturnType: None
|
|
19
|
+
AlwaysBreakBeforeMultilineStrings: true
|
|
20
|
+
AlwaysBreakTemplateDeclarations: true
|
|
21
|
+
BinPackArguments: true
|
|
22
|
+
BinPackParameters: true
|
|
23
|
+
BraceWrapping:
|
|
24
|
+
AfterClass: false
|
|
25
|
+
AfterControlStatement: false
|
|
26
|
+
AfterEnum: false
|
|
27
|
+
AfterFunction: false
|
|
28
|
+
AfterNamespace: false
|
|
29
|
+
AfterObjCDeclaration: false
|
|
30
|
+
AfterStruct: false
|
|
31
|
+
AfterUnion: false
|
|
32
|
+
BeforeCatch: false
|
|
33
|
+
BeforeElse: false
|
|
34
|
+
IndentBraces: false
|
|
35
|
+
BreakBeforeBinaryOperators: None
|
|
36
|
+
BreakBeforeBraces: Attach
|
|
37
|
+
BreakBeforeTernaryOperators: true
|
|
38
|
+
BreakConstructorInitializersBeforeComma: false
|
|
39
|
+
BreakAfterJavaFieldAnnotations: false
|
|
40
|
+
BreakStringLiterals: true
|
|
41
|
+
ColumnLimit: 80
|
|
42
|
+
CommentPragmas: '^ IWYU pragma:'
|
|
43
|
+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
44
|
+
ConstructorInitializerIndentWidth: 4
|
|
45
|
+
ContinuationIndentWidth: 4
|
|
46
|
+
Cpp11BracedListStyle: true
|
|
47
|
+
DisableFormat: false
|
|
48
|
+
ExperimentalAutoDetectBinPacking: false
|
|
49
|
+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
|
50
|
+
IncludeCategories:
|
|
51
|
+
- Regex: '^<.*\.h>'
|
|
52
|
+
Priority: 1
|
|
53
|
+
- Regex: '^<.*'
|
|
54
|
+
Priority: 2
|
|
55
|
+
- Regex: '.*'
|
|
56
|
+
Priority: 3
|
|
57
|
+
IncludeIsMainRegex: '([-_](test|unittest))?$'
|
|
58
|
+
IndentCaseLabels: true
|
|
59
|
+
IndentWidth: 2
|
|
60
|
+
IndentWrappedFunctionNames: false
|
|
61
|
+
JavaScriptQuotes: Leave
|
|
62
|
+
JavaScriptWrapImports: true
|
|
63
|
+
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
64
|
+
MacroBlockBegin: ''
|
|
65
|
+
MacroBlockEnd: ''
|
|
66
|
+
MaxEmptyLinesToKeep: 1
|
|
67
|
+
NamespaceIndentation: None
|
|
68
|
+
ObjCBlockIndentWidth: 2
|
|
69
|
+
ObjCSpaceAfterProperty: false
|
|
70
|
+
ObjCSpaceBeforeProtocolList: false
|
|
71
|
+
PenaltyBreakBeforeFirstCallParameter: 1
|
|
72
|
+
PenaltyBreakComment: 300
|
|
73
|
+
PenaltyBreakFirstLessLess: 120
|
|
74
|
+
PenaltyBreakString: 1000
|
|
75
|
+
PenaltyExcessCharacter: 1000000
|
|
76
|
+
PenaltyReturnTypeOnItsOwnLine: 200
|
|
77
|
+
PointerAlignment: Left
|
|
78
|
+
ReflowComments: true
|
|
79
|
+
SortIncludes: true
|
|
80
|
+
SpaceAfterCStyleCast: false
|
|
81
|
+
SpaceBeforeAssignmentOperators: true
|
|
82
|
+
SpaceBeforeParens: ControlStatements
|
|
83
|
+
SpaceInEmptyParentheses: false
|
|
84
|
+
SpacesBeforeTrailingComments: 2
|
|
85
|
+
SpacesInAngles: false
|
|
86
|
+
SpacesInContainerLiterals: true
|
|
87
|
+
SpacesInCStyleCastParentheses: false
|
|
88
|
+
SpacesInParentheses: false
|
|
89
|
+
SpacesInSquareBrackets: false
|
|
90
|
+
Standard: Auto
|
|
91
|
+
TabWidth: 8
|
|
92
|
+
UseTab: Never
|
|
93
|
+
...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[flake8]
|
|
2
|
+
select = B,C,E,F,P,T4,W,B9
|
|
3
|
+
max-line-length = 80
|
|
4
|
+
# C408 ignored because we like the dict keyword argument syntax
|
|
5
|
+
# E501 is not flexible enough, we're using B950 instead
|
|
6
|
+
ignore =
|
|
7
|
+
E203,E305,E402,E501,E721,E741,F403,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303,
|
|
8
|
+
# shebang has extra meaning in fbcode lints, so I think it's not worth trying
|
|
9
|
+
# to line this up with executable bit
|
|
10
|
+
EXE001, EXE002,
|
|
11
|
+
# these ignores are from flake8-bugbear; please fix!
|
|
12
|
+
B007,B008,
|
|
13
|
+
# these ignores are from flake8-comprehensions; please fix!
|
|
14
|
+
C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
name: UnitTest
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
paths:
|
|
7
|
+
- '**.py'
|
|
8
|
+
- '**.tsv'
|
|
9
|
+
- '**.toml'
|
|
10
|
+
- '**.yml'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
unit-test:
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
19
|
+
python-version: ['3.9']
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
- name: Set up Python ${{ matrix.python-version }} (non-Windows)
|
|
25
|
+
if: runner.os != 'Windows'
|
|
26
|
+
uses: actions/setup-python@v4
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
- name: Cache Homebrew (macOS)
|
|
30
|
+
if: runner.os == 'macOS'
|
|
31
|
+
uses: actions/cache@v4
|
|
32
|
+
with:
|
|
33
|
+
path: |
|
|
34
|
+
/opt/homebrew/Cellar/openfst
|
|
35
|
+
/opt/homebrew/include/fst
|
|
36
|
+
/opt/homebrew/lib/libfst*
|
|
37
|
+
key: brew-openfst-${{ runner.os }}
|
|
38
|
+
- name: Install openfst (macOS)
|
|
39
|
+
if: runner.os == 'macOS'
|
|
40
|
+
run: |
|
|
41
|
+
brew install openfst || true
|
|
42
|
+
echo "CPLUS_INCLUDE_PATH=/opt/homebrew/include:$CPLUS_INCLUDE_PATH" >> $GITHUB_ENV
|
|
43
|
+
echo "LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH" >> $GITHUB_ENV
|
|
44
|
+
- name: Cache pip (non-Windows)
|
|
45
|
+
if: runner.os != 'Windows'
|
|
46
|
+
uses: actions/cache@v4
|
|
47
|
+
with:
|
|
48
|
+
path: ~/.cache/pip
|
|
49
|
+
key: pip-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
|
|
50
|
+
- name: Install dependencies (non-Windows)
|
|
51
|
+
if: runner.os != 'Windows'
|
|
52
|
+
run: |
|
|
53
|
+
python -m pip install --upgrade pip
|
|
54
|
+
pip install .[test]
|
|
55
|
+
- name: Set up Conda (Windows)
|
|
56
|
+
if: runner.os == 'Windows'
|
|
57
|
+
uses: conda-incubator/setup-miniconda@v3
|
|
58
|
+
with:
|
|
59
|
+
python-version: ${{ matrix.python-version }}
|
|
60
|
+
activate-environment: test
|
|
61
|
+
use-only-tar-bz2: true
|
|
62
|
+
- name: Cache Conda (Windows)
|
|
63
|
+
if: runner.os == 'Windows'
|
|
64
|
+
uses: actions/cache@v4
|
|
65
|
+
with:
|
|
66
|
+
path: C:\Miniconda\envs\test
|
|
67
|
+
key: conda-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
|
|
68
|
+
- name: Install dependencies (Windows)
|
|
69
|
+
if: runner.os == 'Windows'
|
|
70
|
+
shell: bash -el {0}
|
|
71
|
+
run: |
|
|
72
|
+
conda install -c conda-forge pynini
|
|
73
|
+
python -m pip install --upgrade pip
|
|
74
|
+
pip install .[test] --no-deps
|
|
75
|
+
pip install flake8 pytest importlib_resources
|
|
76
|
+
- name: Lint with flake8
|
|
77
|
+
shell: bash -el {0}
|
|
78
|
+
run: |
|
|
79
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
80
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
81
|
+
- name: Test with pytest
|
|
82
|
+
shell: bash -el {0}
|
|
83
|
+
run: pytest
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: Build Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: 'Release version (optional, will be determined by setuptools_scm if not provided)'
|
|
8
|
+
required: false
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: [3.9]
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ matrix.python-version }}
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: |
|
|
26
|
+
python -m pip install --upgrade pip
|
|
27
|
+
pip install .[test]
|
|
28
|
+
pip install build twine
|
|
29
|
+
|
|
30
|
+
- name: Build Graph
|
|
31
|
+
run: |
|
|
32
|
+
python -m tn --text "2.5平方电线" --overwrite_cache --language "zh"
|
|
33
|
+
python -m tn --text "2010-03-21" --overwrite_cache --language "en"
|
|
34
|
+
python -m itn --text "二点五平方电线" --overwrite_cache
|
|
35
|
+
|
|
36
|
+
- name: Prepare Graph
|
|
37
|
+
run: |
|
|
38
|
+
mkdir graph
|
|
39
|
+
cp tn/*.fst graph
|
|
40
|
+
cp itn/*.fst graph
|
|
41
|
+
|
|
42
|
+
- name: Get version from setuptools_scm
|
|
43
|
+
id: scm_version
|
|
44
|
+
run: |
|
|
45
|
+
# Check if version is provided as input
|
|
46
|
+
if [ -n "${{ github.event.inputs.version }}" ]; then
|
|
47
|
+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
|
|
48
|
+
else
|
|
49
|
+
# Get version from setuptools_scm
|
|
50
|
+
pip install setuptools_scm
|
|
51
|
+
VERSION=$(python -m setuptools_scm | tail -1)
|
|
52
|
+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
- name: Upload Graph
|
|
56
|
+
uses: actions/upload-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
name: release-graph-v${{ steps.scm_version.outputs.VERSION }}
|
|
59
|
+
path: graph
|
|
60
|
+
|
|
61
|
+
- name: Build package
|
|
62
|
+
run: |
|
|
63
|
+
python -m build
|
|
64
|
+
|
|
65
|
+
- name: Publish on pypi.org
|
|
66
|
+
if: github.ref == 'refs/heads/master' && github.repository == 'wenet-e2e/WeTextProcessing'
|
|
67
|
+
env:
|
|
68
|
+
TWINE_USERNAME: __token__
|
|
69
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
70
|
+
run: |
|
|
71
|
+
python -m twine upload dist/*
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Visual Studio Code files
|
|
7
|
+
.vscode
|
|
8
|
+
.vs
|
|
9
|
+
|
|
10
|
+
# PyCharm files
|
|
11
|
+
.idea
|
|
12
|
+
|
|
13
|
+
# Eclipse Project settings
|
|
14
|
+
*.*project
|
|
15
|
+
.settings
|
|
16
|
+
|
|
17
|
+
# Sublime Text settings
|
|
18
|
+
*.sublime-workspace
|
|
19
|
+
*.sublime-project
|
|
20
|
+
|
|
21
|
+
# Editor temporaries
|
|
22
|
+
*.swn
|
|
23
|
+
*.swo
|
|
24
|
+
*.swp
|
|
25
|
+
*.swm
|
|
26
|
+
*~
|
|
27
|
+
|
|
28
|
+
# IPython notebook checkpoints
|
|
29
|
+
.ipynb_checkpoints
|
|
30
|
+
|
|
31
|
+
# macOS dir files
|
|
32
|
+
.DS_Store
|
|
33
|
+
|
|
34
|
+
# Clangd files
|
|
35
|
+
.cache
|
|
36
|
+
compile_commands.json
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Setup files
|
|
40
|
+
WeTextProcessing.egg-info/
|
|
41
|
+
build/
|
|
42
|
+
dist/
|
|
43
|
+
tn/*.far
|
|
44
|
+
itn/*.far
|
|
45
|
+
|
|
46
|
+
# Version file(setuptools_scm generated)
|
|
47
|
+
tn/_version.py
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
exclude: '.*\.(txt|tsv)$'
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
+
rev: v4.5.0
|
|
5
|
+
hooks:
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- repo: https://github.com/pre-commit/mirrors-yapf
|
|
8
|
+
rev: 'v0.32.0'
|
|
9
|
+
hooks:
|
|
10
|
+
- id: yapf
|
|
11
|
+
- repo: https://github.com/pycqa/flake8
|
|
12
|
+
rev: '3.8.2'
|
|
13
|
+
hooks:
|
|
14
|
+
- id: flake8
|
|
15
|
+
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
16
|
+
rev: 'v17.0.6'
|
|
17
|
+
hooks:
|
|
18
|
+
- id: clang-format
|
|
19
|
+
exclude: '.*\.(json|java|js|m|mm|proto)'
|
|
20
|
+
- repo: https://github.com/cpplint/cpplint
|
|
21
|
+
rev: '1.6.1'
|
|
22
|
+
hooks:
|
|
23
|
+
- id: cpplint
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: WeTextProcessing
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6.dev19
|
|
4
4
|
Summary: WeTextProcessing, including TN & ITN
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Author-email: pzd17@tsinghua.org.cn, sxc19@tsinghua.org.cn
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
5
|
+
Author-email: Zhendong Peng <pzd17@tsinghua.org.cn>, Xingchen Song <sxc19@tsinghua.org.cn>
|
|
6
|
+
Project-URL: Homepage, https://github.com/wenet-e2e/WeTextProcessing
|
|
10
7
|
Classifier: Programming Language :: Python :: 3
|
|
11
8
|
Classifier: Operating System :: OS Independent
|
|
12
9
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
10
|
+
Requires-Python: >=3.7
|
|
13
11
|
Description-Content-Type: text/markdown
|
|
14
12
|
License-File: LICENSE
|
|
13
|
+
Requires-Dist: pynini>=2.1.6
|
|
14
|
+
Requires-Dist: importlib_resources
|
|
15
|
+
Provides-Extra: test
|
|
16
|
+
Requires-Dist: pytest; extra == "test"
|
|
17
|
+
Requires-Dist: flake8; extra == "test"
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: flake8; extra == "dev"
|
|
20
|
+
Requires-Dist: pre-commit==3.5.0; extra == "dev"
|
|
21
|
+
Requires-Dist: pytest; extra == "dev"
|
|
22
|
+
Dynamic: license-file
|
|
15
23
|
|
|
16
24
|
## Text Normalization & Inverse Text Normalization
|
|
17
25
|
|
|
@@ -150,5 +158,3 @@ Or you can directly discuss on [Github Issues](https://github.com/wenet-e2e/WeTe
|
|
|
150
158
|
3. Referred [Pynini](https://github.com/kylebgorman/pynini) for reading the FAR, and printing the shortest path of a lattice in the C++ runtime.
|
|
151
159
|
4. Referred [TN of NeMo](https://github.com/NVIDIA/NeMo/tree/main/nemo_text_processing/text_normalization/zh) for the data to build the tagger graph.
|
|
152
160
|
5. Referred [ITN of chinese_text_normalization](https://github.com/speechio/chinese_text_normalization/tree/master/thrax/src/cn) for the data to build the tagger graph.
|
|
153
|
-
|
|
154
|
-
|
{WeTextProcessing-1.0.4.1 → wetextprocessing-1.0.6.dev19}/WeTextProcessing.egg-info/PKG-INFO
RENAMED
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: WeTextProcessing
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6.dev19
|
|
4
4
|
Summary: WeTextProcessing, including TN & ITN
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Author-email: pzd17@tsinghua.org.cn, sxc19@tsinghua.org.cn
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
5
|
+
Author-email: Zhendong Peng <pzd17@tsinghua.org.cn>, Xingchen Song <sxc19@tsinghua.org.cn>
|
|
6
|
+
Project-URL: Homepage, https://github.com/wenet-e2e/WeTextProcessing
|
|
10
7
|
Classifier: Programming Language :: Python :: 3
|
|
11
8
|
Classifier: Operating System :: OS Independent
|
|
12
9
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
10
|
+
Requires-Python: >=3.7
|
|
13
11
|
Description-Content-Type: text/markdown
|
|
14
12
|
License-File: LICENSE
|
|
13
|
+
Requires-Dist: pynini>=2.1.6
|
|
14
|
+
Requires-Dist: importlib_resources
|
|
15
|
+
Provides-Extra: test
|
|
16
|
+
Requires-Dist: pytest; extra == "test"
|
|
17
|
+
Requires-Dist: flake8; extra == "test"
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: flake8; extra == "dev"
|
|
20
|
+
Requires-Dist: pre-commit==3.5.0; extra == "dev"
|
|
21
|
+
Requires-Dist: pytest; extra == "dev"
|
|
22
|
+
Dynamic: license-file
|
|
15
23
|
|
|
16
24
|
## Text Normalization & Inverse Text Normalization
|
|
17
25
|
|
|
@@ -150,5 +158,3 @@ Or you can directly discuss on [Github Issues](https://github.com/wenet-e2e/WeTe
|
|
|
150
158
|
3. Referred [Pynini](https://github.com/kylebgorman/pynini) for reading the FAR, and printing the shortest path of a lattice in the C++ runtime.
|
|
151
159
|
4. Referred [TN of NeMo](https://github.com/NVIDIA/NeMo/tree/main/nemo_text_processing/text_normalization/zh) for the data to build the tagger graph.
|
|
152
160
|
5. Referred [ITN of chinese_text_normalization](https://github.com/speechio/chinese_text_normalization/tree/master/thrax/src/cn) for the data to build the tagger graph.
|
|
153
|
-
|
|
154
|
-
|