Datasets:
Commit
•
7c25d0a
1
Parent(s):
256b262
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
librispeech_asr_self_contained.py
CHANGED
@@ -20,7 +20,6 @@
|
|
20 |
import os
|
21 |
|
22 |
import datasets
|
23 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
24 |
|
25 |
|
26 |
_CITATION = """\
|
@@ -110,7 +109,6 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
110 |
supervised_keys=("file", "text"),
|
111 |
homepage=_URL,
|
112 |
citation=_CITATION,
|
113 |
-
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
114 |
)
|
115 |
|
116 |
def _split_generators(self, dl_manager):
|
|
|
20 |
import os
|
21 |
|
22 |
import datasets
|
|
|
23 |
|
24 |
|
25 |
_CITATION = """\
|
|
|
109 |
supervised_keys=("file", "text"),
|
110 |
homepage=_URL,
|
111 |
citation=_CITATION,
|
|
|
112 |
)
|
113 |
|
114 |
def _split_generators(self, dl_manager):
|