albertvillanova HF staff commited on
Commit
c3e21b5
1 Parent(s): 3271b79

Remove deprecated tasks (#5)

Browse files

- Remove deprecated tasks (4213d536bc15cc0f5a1175a9c6e6d91309e48847)

Files changed (1) hide show
  1. superb.py +0 -5
superb.py CHANGED
@@ -23,7 +23,6 @@ import textwrap
23
  from dataclasses import dataclass
24
 
25
  import datasets
26
- from datasets.tasks import AutomaticSpeechRecognition
27
 
28
 
29
  _CITATION = """\
@@ -108,7 +107,6 @@ class SuperbConfig(datasets.BuilderConfig):
108
  url,
109
  data_url=None,
110
  supervised_keys=None,
111
- task_templates=None,
112
  **kwargs,
113
  ):
114
  super().__init__(version=datasets.Version("1.9.0", ""), **kwargs)
@@ -116,7 +114,6 @@ class SuperbConfig(datasets.BuilderConfig):
116
  self.data_url = data_url
117
  self.url = url
118
  self.supervised_keys = supervised_keys
119
- self.task_templates = task_templates
120
 
121
 
122
  class Superb(datasets.GeneratorBasedBuilder):
@@ -147,7 +144,6 @@ class Superb(datasets.GeneratorBasedBuilder):
147
  supervised_keys=("file", "text"),
148
  url="http://www.openslr.org/12",
149
  data_url="http://www.openslr.org/resources/12/",
150
- task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
151
  ),
152
  SuperbConfig(
153
  name="ks",
@@ -341,7 +337,6 @@ class Superb(datasets.GeneratorBasedBuilder):
341
  supervised_keys=self.config.supervised_keys,
342
  homepage=self.config.url,
343
  citation=_CITATION,
344
- task_templates=self.config.task_templates,
345
  )
346
 
347
  def _split_generators(self, dl_manager):
 
23
  from dataclasses import dataclass
24
 
25
  import datasets
 
26
 
27
 
28
  _CITATION = """\
 
107
  url,
108
  data_url=None,
109
  supervised_keys=None,
 
110
  **kwargs,
111
  ):
112
  super().__init__(version=datasets.Version("1.9.0", ""), **kwargs)
 
114
  self.data_url = data_url
115
  self.url = url
116
  self.supervised_keys = supervised_keys
 
117
 
118
 
119
  class Superb(datasets.GeneratorBasedBuilder):
 
144
  supervised_keys=("file", "text"),
145
  url="http://www.openslr.org/12",
146
  data_url="http://www.openslr.org/resources/12/",
 
147
  ),
148
  SuperbConfig(
149
  name="ks",
 
337
  supervised_keys=self.config.supervised_keys,
338
  homepage=self.config.url,
339
  citation=_CITATION,
 
340
  )
341
 
342
  def _split_generators(self, dl_manager):