We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62d6bf6 + e872b4e commit 589b385Copy full SHA for 589b385
training/eval.py
@@ -52,7 +52,7 @@ def wer(asr_model_name_or_path, prompts, audios, device, per_device_eval_batch_s
52
if len(norm_ref) > 0:
53
norm_pred = normalizer(pred["text"])
54
normalized_predictions.append(norm_pred)
55
- normalized_references.append(norm_pred)
+ normalized_references.append(norm_ref)
56
57
word_error = 100 * metric.compute(predictions=normalized_predictions, references=normalized_references)
58
0 commit comments