Commit
•
571dd83
1
Parent(s):
1e6f1c0
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
Uyghur.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import datasets
|
2 |
from datasets import DownloadManager, DatasetInfo
|
3 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
4 |
import os
|
5 |
import csv
|
6 |
import json
|
@@ -85,7 +84,6 @@ class UyghurASR(datasets.GeneratorBasedBuilder):
|
|
85 |
supervised_keys=None,
|
86 |
homepage='https://huggingface.co/datasets/sunlixu/Uyghur/',
|
87 |
citation=_CITATION,
|
88 |
-
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
89 |
)
|
90 |
|
91 |
def _split_generators(self, dl_manager: DownloadManager):
|
|
|
1 |
import datasets
|
2 |
from datasets import DownloadManager, DatasetInfo
|
|
|
3 |
import os
|
4 |
import csv
|
5 |
import json
|
|
|
84 |
supervised_keys=None,
|
85 |
homepage='https://huggingface.co/datasets/sunlixu/Uyghur/',
|
86 |
citation=_CITATION,
|
|
|
87 |
)
|
88 |
|
89 |
def _split_generators(self, dl_manager: DownloadManager):
|