albertvillanova HF staff commited on
Commit
6ea6840
1 Parent(s): edd09e0

Remove deprecated tasks

Browse files

This dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999

Files changed (1) hide show
  1. librispeech_asr.py +0 -2
librispeech_asr.py CHANGED
@@ -21,7 +21,6 @@ import os
21
  from pathlib import Path
22
 
23
  import datasets
24
- from datasets.tasks import AutomaticSpeechRecognition
25
 
26
 
27
  _CITATION = """\
@@ -102,7 +101,6 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
102
  supervised_keys=("file", "text"),
103
  homepage=_URL,
104
  citation=_CITATION,
105
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
106
  )
107
 
108
  def _split_generators(self, dl_manager):
 
21
  from pathlib import Path
22
 
23
  import datasets
 
24
 
25
 
26
  _CITATION = """\
 
101
  supervised_keys=("file", "text"),
102
  homepage=_URL,
103
  citation=_CITATION,
 
104
  )
105
 
106
  def _split_generators(self, dl_manager):