ustc-slr / DilatedSLR

PyTorch reimplementation of DilatedSLR (IJCAI'18) for continuous sign language recognition.
43 stars 12 forks source link

WER计算方式 #2

Open TheWall9 opened 4 years ago

TheWall9 commented 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)

将llfpe转成love应该删除1次,替换2次吧