mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
FunTextProcessing
This commit is contained in:
parent
08afa0afb9
commit
ff477cf148
@ -21,12 +21,14 @@ bash fun_text_processing/install_pynini.sh
|
|||||||
#### Inverse Text Processing (ITN)
|
#### 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.
|
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="one hundred twenty three" --language=en
|
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 --overwrite_cache
|
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
|
cat output.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user