Datasets:
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
multilingual_librispeech.py
CHANGED
|
@@ -22,7 +22,6 @@ import os
|
|
| 22 |
import warnings
|
| 23 |
|
| 24 |
import datasets
|
| 25 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
| 26 |
|
| 27 |
|
| 28 |
_CITATION = """\
|
|
@@ -95,7 +94,6 @@ class MultilingualLibrispeech(datasets.GeneratorBasedBuilder):
|
|
| 95 |
supervised_keys=("file", "text"),
|
| 96 |
homepage=_URL,
|
| 97 |
citation=_CITATION,
|
| 98 |
-
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
| 99 |
)
|
| 100 |
|
| 101 |
def _split_generators(self, dl_manager):
|
|
|
|
| 22 |
import warnings
|
| 23 |
|
| 24 |
import datasets
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
_CITATION = """\
|
|
|
|
| 94 |
supervised_keys=("file", "text"),
|
| 95 |
homepage=_URL,
|
| 96 |
citation=_CITATION,
|
|
|
|
| 97 |
)
|
| 98 |
|
| 99 |
def _split_generators(self, dl_manager):
|