Skip to content

Commit 589b385

Browse files
authored
Merge pull request #56 from huggingface/ylacombe-patch-2
Fix WER transcription
2 parents 62d6bf6 + e872b4e commit 589b385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def wer(asr_model_name_or_path, prompts, audios, device, per_device_eval_batch_s
5252
if len(norm_ref) > 0:
5353
norm_pred = normalizer(pred["text"])
5454
normalized_predictions.append(norm_pred)
55-
normalized_references.append(norm_pred)
55+
normalized_references.append(norm_ref)
5656

5757
word_error = 100 * metric.compute(predictions=normalized_predictions, references=normalized_references)
5858

0 commit comments

Comments
 (0)