albertvillanova HF staff commited on
Commit
d1206b4
1 Parent(s): ed25c08

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. asr_dummy.py +0 -9
asr_dummy.py CHANGED
@@ -22,7 +22,6 @@ import os
22
  import textwrap
23
 
24
  import datasets
25
- from datasets.tasks import AutomaticSpeechRecognition
26
 
27
 
28
  _CITATION = """\
@@ -105,7 +104,6 @@ class AsrDummybConfig(datasets.BuilderConfig):
105
  self,
106
  data_url,
107
  url,
108
- task_templates=None,
109
  **kwargs,
110
  ):
111
  super(AsrDummybConfig, self).__init__(
@@ -113,7 +111,6 @@ class AsrDummybConfig(datasets.BuilderConfig):
113
  )
114
  self.data_url = data_url
115
  self.url = url
116
- self.task_templates = task_templates
117
 
118
 
119
  class AsrDummy(datasets.GeneratorBasedBuilder):
@@ -133,11 +130,6 @@ class AsrDummy(datasets.GeneratorBasedBuilder):
133
  ),
134
  url="http://www.openslr.org/12",
135
  data_url="http://www.openslr.org/resources/12/",
136
- # task_templates=[
137
- # AutomaticSpeechRecognition(
138
- # audio_column="file", transcription_column="text"
139
- # )
140
- # ],
141
  )
142
  ]
143
 
@@ -155,7 +147,6 @@ class AsrDummy(datasets.GeneratorBasedBuilder):
155
  supervised_keys=("file",),
156
  homepage=self.config.url,
157
  citation=_CITATION,
158
- task_templates=self.config.task_templates,
159
  )
160
 
161
  def _split_generators(self, dl_manager):
 
22
  import textwrap
23
 
24
  import datasets
 
25
 
26
 
27
  _CITATION = """\
 
104
  self,
105
  data_url,
106
  url,
 
107
  **kwargs,
108
  ):
109
  super(AsrDummybConfig, self).__init__(
 
111
  )
112
  self.data_url = data_url
113
  self.url = url
 
114
 
115
 
116
  class AsrDummy(datasets.GeneratorBasedBuilder):
 
130
  ),
131
  url="http://www.openslr.org/12",
132
  data_url="http://www.openslr.org/resources/12/",
 
 
 
 
 
133
  )
134
  ]
135
 
 
147
  supervised_keys=("file",),
148
  homepage=self.config.url,
149
  citation=_CITATION,
 
150
  )
151
 
152
  def _split_generators(self, dl_manager):