| | |
| | | - FunTextProcessing supports inverse text processing (ITN), text processing (TN). |
| | | - FunTextProcessing supports multilingual, 10+ languages for ITN, 5 languages for TN. |
| | | |
| | | #### Installation |
| | | ### Installation |
| | | |
| | | Fun Text Processing, specifically (Inverse) Text Normalization, requires Pynini to be installed. |
| | | ``` |
| | |
| | | #### Inverse Text Processing (ITN) |
| | | Given text inputs, such as speech recognition results, use `fun_text_processing/inverse_text_normalization/inverse_normalize.py` to output ITN results. You may refer to the following example scripts. |
| | | |
| | | - ITN example for English |
| | | ``` |
| | | python fun_text_processing/inverse_text_normalization/inverse_normalize.py --text="ratus dua puluh tiga" --language=id |
| | | python fun_text_processing/inverse_text_normalization/inverse_normalize.py --text="one hundred twenty three" --language=en |
| | | ``` |
| | | |
| | | - ITN example for Indonesian |
| | | ``` |
| | | python fun_text_processing/inverse_text_normalization/inverse_normalize.py --text="ratus dua puluh tiga" --language=id --cache_dir ./model/ --output_file output.txt |
| | | cat output.txt |
| | | ``` |
| | | |
| | | Arguments: |