中文ASR评测指标,WER和SER计算。
Calculate asr evaluation like WER and SER in Chinese. Calculate levenshtein distance.
- Python 3.7+
WER: Word Error Rate
- S: the number of subsitutions. 替换的数量
- D: the number of deletions. 删掉的数量
- I: the number of insertions. 插入的数量
- C: the number of correct words. 正确的数量
- N: the number of words in the reference. 总字数
SER: Sentence Error Rate
- S: the number of subsitutions.
- D: the number of deletions.
- I: the number of insertions.
- C: the number of correct words.
- N: the number of words in the reference.
git clone [email protected]:yanhuibin315/ASR_Evaluation_CN.git
python demo.py
标准结果:
["你好", "**"]
识别结果:
["你嗨", "**"]
WER = 1/4 = 0.25
SER = 1/2 = 0.5