albertvillanova HF staff commited on
Commit
e9b6b2e
1 Parent(s): 81d6da0

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