albertvillanova HF staff commited on
Commit
1d37755
1 Parent(s): 36aa7fb

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. ayberksdatasett.py +0 -2
ayberksdatasett.py CHANGED
@@ -2,7 +2,6 @@ import csv
2
  import os
3
 
4
  import datasets
5
- from datasets.tasks import AutomaticSpeechRecognition
6
 
7
  import soundfile as sf
8
  def map_to_array(batch):
@@ -42,7 +41,6 @@ class DataSet(datasets.GeneratorBasedBuilder):
42
  supervised_keys=("file", "trans"),
43
  homepage=_URL,
44
  citation=_CITATION,
45
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="trans")],
46
  )
47
 
48
  def _split_generators(self, dl_manager):
 
2
  import os
3
 
4
  import datasets
 
5
 
6
  import soundfile as sf
7
  def map_to_array(batch):
 
41
  supervised_keys=("file", "trans"),
42
  homepage=_URL,
43
  citation=_CITATION,
 
44
  )
45
 
46
  def _split_generators(self, dl_manager):