Skip to content

WER计算方式 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TheWall9 opened this issue Aug 29, 2020 · 0 comments
Open

WER计算方式 #2

TheWall9 opened this issue Aug 29, 2020 · 0 comments

Comments

@TheWall9
Copy link

TheWall9 commented Aug 29, 2020

您好,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次吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant