-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
你的wer计算方式在遇到部分数据时会报错(gigaspeech、people speech数据集里面出现),例如:
pred = "um um"
ref = "mm mm"
output = compute_wer([ref], [pred], language="en")
print(output)
File "/xxx/UltraEval-Audio/audio_evals/lib/wer.py", line 58, in compute_wer
return distance / ref_length
ZeroDivisionError: division by zero
Metadata
Metadata
Assignees
Labels
No labels