Bagas Shalahuddin Wahid
commited on
Commit
·
8a562f9
1
Parent(s):
6dd5316
aa
Browse files- su_id_asr_split.py +7 -6
su_id_asr_split.py
CHANGED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
import csv
|
| 2 |
import os
|
| 3 |
-
from
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
import datasets
|
| 6 |
|
| 7 |
from seacrowd.utils import schemas
|
| 8 |
from seacrowd.utils.configs import SEACrowdConfig
|
| 9 |
-
from seacrowd.utils.constants import
|
| 10 |
-
DEFAULT_SOURCE_VIEW_NAME, Tasks)
|
| 11 |
|
| 12 |
_DATASETNAME = "su_id_asr"
|
| 13 |
_SOURCE_VIEW_NAME = DEFAULT_SOURCE_VIEW_NAME
|
|
@@ -41,10 +43,9 @@ _URLs = {
|
|
| 41 |
"su_id_asr_test": "https://drive.google.com/file/d/1-7aLW9Tzs4lxm9ImWho91FjpgpVC6wAc/view?usp=sharing",
|
| 42 |
}
|
| 43 |
|
| 44 |
-
_SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION]
|
| 45 |
|
| 46 |
_SOURCE_VERSION = "1.0.0"
|
| 47 |
-
|
| 48 |
_SEACROWD_VERSION = "2024.06.20"
|
| 49 |
|
| 50 |
def download_from_gdrive(url, output_dir):
|
|
@@ -56,7 +57,7 @@ def download_from_gdrive(url, output_dir):
|
|
| 56 |
return output_path
|
| 57 |
|
| 58 |
|
| 59 |
-
class
|
| 60 |
"""Javanese ASR training data set containing ~185K utterances."""
|
| 61 |
|
| 62 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|
|
|
|
| 1 |
import csv
|
| 2 |
import os
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from typing import List
|
| 5 |
+
import gdown
|
| 6 |
+
import tempfile
|
| 7 |
|
| 8 |
import datasets
|
| 9 |
|
| 10 |
from seacrowd.utils import schemas
|
| 11 |
from seacrowd.utils.configs import SEACrowdConfig
|
| 12 |
+
from seacrowd.utils.constants import Tasks
|
|
|
|
| 13 |
|
| 14 |
_DATASETNAME = "su_id_asr"
|
| 15 |
_SOURCE_VIEW_NAME = DEFAULT_SOURCE_VIEW_NAME
|
|
|
|
| 43 |
"su_id_asr_test": "https://drive.google.com/file/d/1-7aLW9Tzs4lxm9ImWho91FjpgpVC6wAc/view?usp=sharing",
|
| 44 |
}
|
| 45 |
|
| 46 |
+
_SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION]
|
| 47 |
|
| 48 |
_SOURCE_VERSION = "1.0.0"
|
|
|
|
| 49 |
_SEACROWD_VERSION = "2024.06.20"
|
| 50 |
|
| 51 |
def download_from_gdrive(url, output_dir):
|
|
|
|
| 57 |
return output_path
|
| 58 |
|
| 59 |
|
| 60 |
+
class SuIdASR(datasets.GeneratorBasedBuilder):
|
| 61 |
"""Javanese ASR training data set containing ~185K utterances."""
|
| 62 |
|
| 63 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|