You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that in some cases in which the prediction is longer than the reference we may have word/character error rate higher than 1 which is a bit odd.
If it's a real bug I think I can solve it with a PR changing this line to
returnmin(incorrect/total, 1.0)
Steps to reproduce the bug
fromdatasetsimportload_metricwer=load_metric("wer")
wer_value=wer.compute(predictions=["Hi World vka"], references=["Hello"])
print(wer_value)
Describe the bug
It seems that in some cases in which the
prediction
is longer than thereference
we may have word/character error rate higher than 1 which is a bit odd.If it's a real bug I think I can solve it with a PR changing this line to
Steps to reproduce the bug
Expected results
Actual results
Environment info
datasets
version: 2.3.0The text was updated successfully, but these errors were encountered: