Commit
•
4535b95
1
Parent(s):
965e5a2
Remove deprecated tasks (#1)
Browse files- Remove deprecated tasks (c73899ff1e4c32ae87e13c07e21730298cce0e47)
- asr_dummy.py +0 -5
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,13 +104,11 @@ class AsrDummybConfig(datasets.BuilderConfig):
|
|
105 |
self,
|
106 |
data_url,
|
107 |
url,
|
108 |
-
task_templates=None,
|
109 |
**kwargs,
|
110 |
):
|
111 |
super(AsrDummybConfig, self).__init__(version=datasets.Version("1.9.0", ""), **kwargs)
|
112 |
self.data_url = data_url
|
113 |
self.url = url
|
114 |
-
self.task_templates = task_templates
|
115 |
|
116 |
|
117 |
class AsrDummy(datasets.GeneratorBasedBuilder):
|
@@ -131,7 +128,6 @@ class AsrDummy(datasets.GeneratorBasedBuilder):
|
|
131 |
),
|
132 |
url="http://www.openslr.org/12",
|
133 |
data_url="http://www.openslr.org/resources/12/",
|
134 |
-
task_templates=[AutomaticSpeechRecognition(audio_file_path_column="file", transcription_column="text")],
|
135 |
)
|
136 |
]
|
137 |
|
@@ -152,7 +148,6 @@ class AsrDummy(datasets.GeneratorBasedBuilder):
|
|
152 |
supervised_keys=("file", "text"),
|
153 |
homepage=self.config.url,
|
154 |
citation=_CITATION,
|
155 |
-
task_templates=self.config.task_templates,
|
156 |
)
|
157 |
|
158 |
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__(version=datasets.Version("1.9.0", ""), **kwargs)
|
110 |
self.data_url = data_url
|
111 |
self.url = url
|
|
|
112 |
|
113 |
|
114 |
class AsrDummy(datasets.GeneratorBasedBuilder):
|
|
|
128 |
),
|
129 |
url="http://www.openslr.org/12",
|
130 |
data_url="http://www.openslr.org/resources/12/",
|
|
|
131 |
)
|
132 |
]
|
133 |
|
|
|
148 |
supervised_keys=("file", "text"),
|
149 |
homepage=self.config.url,
|
150 |
citation=_CITATION,
|
|
|
151 |
)
|
152 |
|
153 |
def _split_generators(self, dl_manager):
|