albertvillanova HF staff commited on
Commit
4d0af3b
1 Parent(s): e482a29

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