Open TheWall9 opened 4 years ago
您好,lib_metric.py中get_wer_delsubins为什么算的是ref转变成hyp的编辑距离,不应该是hyp转变成ref的吗
`hyp = "llfpe"
ref = "love"
print(get_wer_delsubins(hyp=hyp, ref=ref, debug=True))`
OP REF HYP INS **** l OK l l SUB o f SUB v p OK e e cor 2 sub 2 del 0 ins 1 (0.75, 0.5, 0.25, 0.0)
OP REF HYP INS **** l OK l l SUB o f SUB v p OK e e
(0.75, 0.5, 0.25, 0.0)
将llfpe转成love应该删除1次,替换2次吧
您好,lib_metric.py中get_wer_delsubins为什么算的是ref转变成hyp的编辑距离,不应该是hyp转变成ref的吗
`hyp = "llfpe"
ref = "love"
print(get_wer_delsubins(hyp=hyp, ref=ref, debug=True))`
将llfpe转成love应该删除1次,替换2次吧