ParakeetRebeccaRosario/examples/text_frontend
TianYuan 8a211abb70 add some quantifiers for num.py 2021-08-20 09:55:30 +00:00
..
data restructure frontend example 2021-08-16 08:31:37 +00:00
README.md add some quantifiers for num.py 2021-08-20 09:55:30 +00:00
get_g2p_data.py restructure frontend example 2021-08-16 08:31:37 +00:00
get_textnorm_data.py format 2021-08-17 09:54:07 +00:00
run.sh restructure frontend example 2021-08-16 08:31:37 +00:00
test_g2p.py format 2021-08-17 09:54:07 +00:00
test_textnorm.py restructure frontend example 2021-08-16 08:31:37 +00:00

README.md

Chinese Text Frontend Example

Here's an example for Chinese text frontend, including g2p and text normalization.

G2P

For g2p, we use BZNSYP's phone label as the ground truth and we delete silence tokens in labels and predicted phones.

You should Download BZNSYP from it's Official Website and extract it. Assume the path to the dataset is ~/datasets/BZNSYP.

We use WER as evaluation criterion.

Text Normalization

For text normalization, the test data is data/textnorm_test_cases.txt, we use | as the separator of raw_data and normed_data.

We use CER as evaluation criterion.

Start

Run the command below to get the results of test.

./run.sh

The avg WER of g2p is: 0.027495061517943988

The avg CER of text normalization is: 0.006391234877881762