albertvillanova HF staff commited on
Commit
217bc95
1 Parent(s): 7037784

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
@@ -20,7 +20,6 @@
20
  import os
21
 
22
  import datasets
23
- from datasets.tasks import AutomaticSpeechRecognition
24
 
25
 
26
  _CITATION = """\
@@ -109,7 +108,6 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
109
  supervised_keys=("file", "text"),
110
  homepage=_URL,
111
  citation=_CITATION,
112
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
113
  )
114
 
115
  def _split_generators(self, dl_manager):
 
20
  import os
21
 
22
  import datasets
 
23
 
24
 
25
  _CITATION = """\
 
108
  supervised_keys=("file", "text"),
109
  homepage=_URL,
110
  citation=_CITATION,
 
111
  )
112
 
113
  def _split_generators(self, dl_manager):