tzyll / goparrot

Goodness of Pronunciation (GOP) for oral reading assessment.
44 stars 7 forks source link

GoParrot

GoParrot is a simple tool that computes GOP (Goodness of Pronunciation) scores based on kaldi for oral reading assessment. It provides the baseline for Interspeech paper "ASR-Free Pronunciation Assessment".

Name it parrot as parrot repeats what you say (鹦鹉学舌).

Three kinds of gops can be computed, based on posterior, likelihood and likelihood ratio separately.

How to use it

A Kaldi ASR trained with WSJ dataset is provided, and two samples are given.

git clone https://github.com/tzyll/goparrot.git
cd goparrot

# compile kaldi in the dir, or give a softlink 'kaldi' to the dir
# you may just uncomment the following lines to clone a kaldi
# then follow its instruction to install
# git submodule init
# git submodule update

pip3 install kaldi_io

./run.sh

How to test other data

Just prepare test data with kaldi style as in data/test which includes at least wav.scp, text, utt2spk and spk2utt (utt2spk and spk2utt can be fake, i.e., just wav-id to wav-id).

How to test other ASR or language

Train ASR system with Kaldi with your own dataset, and replace data/lang and exp/nnet3/tdnn with your own.

Performance

We scored hundreds of utterances from ERJ, and the Pearson correlation coefficient (PCC) between human scores and the three types of GOP scores were 0.6249, 0.6334 and 0.6361 separately. The PCC between human scores were about 0.57.

The given ASR model was trained with cross-entropy loss. We also scored with Kaldi Chain (LF-MMI) model, and the PCC between human scores and the three types of GOP scores were 0.1615, 0.1615 (chain model has no prior, so likelihood is actually posterior) and 0.0934 separately.