albertvillanova HF staff commited on
Commit
f6c663a
1 Parent(s): 3f0baad

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_train_other_only.py +0 -2
librispeech_train_other_only.py CHANGED
@@ -20,7 +20,6 @@
20
  import os
21
 
22
  import datasets
23
- from datasets.tasks import AutomaticSpeechRecognition
24
 
25
 
26
  _CITATION = """\
@@ -92,7 +91,6 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
92
  supervised_keys=("file", "text"),
93
  homepage=_URL,
94
  citation=_CITATION,
95
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
96
  )
97
 
98
  def _split_generators(self, dl_manager):
 
20
  import os
21
 
22
  import datasets
 
23
 
24
 
25
  _CITATION = """\
 
91
  supervised_keys=("file", "text"),
92
  homepage=_URL,
93
  citation=_CITATION,
 
94
  )
95
 
96
  def _split_generators(self, dl_manager):