FastWER
用于快速字/字符错误率 (WER/CER) 计算的 PyPI 包
快速(cpp 实现)
句子级和语料库级 WER/CER 分数
安装
pip install pybind11 fastwer
例子
import fastwer
hypo = [ 'This is an example .' , 'This is another example .' ]
ref = [ 'This is the example :)' , 'That is the example .' ]
# Corpus-Level WER: 40.0
fastwer . score ( hypo , ref )
# Corpus-Level CER: 25.5814
fastwer . score ( hypo , ref , char_level = True )
# Sentence-Leve
1