Update README.md

This commit is contained in:
Patrick von Platen 2022-04-12 09:28:37 +00:00 committed by huggingface-web
parent c0b7a4ab9d
commit 7ee7fd3d11
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def map_to_pred(batch):
batch["transcription"] = transcription batch["transcription"] = transcription
return batch return batch
result = librispeech_eval.map(map_to_pred, batched=True, batch_size=1, remove_columns=["speech"]) result = librispeech_eval.map(map_to_pred, batched=True, batch_size=1, remove_columns=["audio"])
print("WER:", wer(result["text"], result["transcription"])) print("WER:", wer(result["text"], result["transcription"]))
``` ```