Datasets:
Languages:
Sundanese
Tags:
speech-recognition
alvinxrwui
commited on
Commit
•
f780020
1
Parent(s):
97ee468
fix: change the url of the train, test, split dataset
Browse files- su_id_asr_6.py +10 -8
su_id_asr_6.py
CHANGED
@@ -45,7 +45,7 @@ _SEACROWD_VERSION = "2024.06.20"
|
|
45 |
|
46 |
GROUP_DATASET_ID = 6
|
47 |
|
48 |
-
class
|
49 |
"""su_id contains ~220K utterances for Sundanese ASR training data."""
|
50 |
|
51 |
BUILDER_CONFIGS = [
|
@@ -90,21 +90,23 @@ class SuIdASR(datasets.GeneratorBasedBuilder):
|
|
90 |
task_templates=[datasets.AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
91 |
)
|
92 |
|
93 |
-
def _split_generators(self, dl_manager: datasets.DownloadManager)
|
94 |
-
|
95 |
-
|
|
|
|
|
96 |
return [
|
97 |
datasets.SplitGenerator(
|
98 |
name=datasets.Split.TRAIN,
|
99 |
-
gen_kwargs={"
|
100 |
),
|
101 |
datasets.SplitGenerator(
|
102 |
-
|
103 |
-
|
104 |
),
|
105 |
datasets.SplitGenerator(
|
106 |
name=datasets.Split.TEST,
|
107 |
-
gen_kwargs={"
|
108 |
),
|
109 |
]
|
110 |
|
|
|
45 |
|
46 |
GROUP_DATASET_ID = 6
|
47 |
|
48 |
+
class SuIdASR6(datasets.GeneratorBasedBuilder):
|
49 |
"""su_id contains ~220K utterances for Sundanese ASR training data."""
|
50 |
|
51 |
BUILDER_CONFIGS = [
|
|
|
90 |
task_templates=[datasets.AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
91 |
)
|
92 |
|
93 |
+
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
94 |
+
test_url = 'https://drive.google.com/file/d/1B3xhZHQ7d8Z0Baqfz_Abefo_i5Voizfi/view?usp=drive_link'
|
95 |
+
train_url = 'https://drive.google.com/file/d/1vW7gfRr36WL7ezXzICJOkt3rYHViSWHr/view?usp=drive_link'
|
96 |
+
val_url = 'https://drive.google.com/file/d/1wUWXmuAkMMZIlo5Is3M1Ndf6NcHa9jnf/view?usp=drive_link'
|
97 |
+
|
98 |
return [
|
99 |
datasets.SplitGenerator(
|
100 |
name=datasets.Split.TRAIN,
|
101 |
+
gen_kwargs={"file_list": dl_manager.download_and_extract(train_url)},
|
102 |
),
|
103 |
datasets.SplitGenerator(
|
104 |
+
name=datasets.Split.VALIDATION,
|
105 |
+
gen_kwargs={"file_list": dl_manager.download_and_extract(val_url)},
|
106 |
),
|
107 |
datasets.SplitGenerator(
|
108 |
name=datasets.Split.TEST,
|
109 |
+
gen_kwargs={"file_list": dl_manager.download_and_extract(test_url)},
|
110 |
),
|
111 |
]
|
112 |
|