Remove deprecated tasks
Browse filesThis 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
NST.py
CHANGED
@@ -20,7 +20,6 @@ import io
|
|
20 |
import json
|
21 |
import tarfile
|
22 |
import datasets
|
23 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
24 |
|
25 |
|
26 |
_CITATION = """\
|
@@ -182,12 +181,6 @@ class Nst(datasets.GeneratorBasedBuilder):
|
|
182 |
supervised_keys=None,
|
183 |
homepage=_HOMEPAGE,
|
184 |
citation=_CITATION,
|
185 |
-
task_templates=[
|
186 |
-
AutomaticSpeechRecognition(
|
187 |
-
audio_column="audio",
|
188 |
-
transcription_column="text"
|
189 |
-
)
|
190 |
-
],
|
191 |
)
|
192 |
|
193 |
def _split_generators(self, dl_manager):
|
|
|
20 |
import json
|
21 |
import tarfile
|
22 |
import datasets
|
|
|
23 |
|
24 |
|
25 |
_CITATION = """\
|
|
|
181 |
supervised_keys=None,
|
182 |
homepage=_HOMEPAGE,
|
183 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
)
|
185 |
|
186 |
def _split_generators(self, dl_manager):
|