retineo commited on
Commit
34d1e05
·
verified ·
1 Parent(s): 9ec838b

Update jv_id_asr_split.py

Browse files
Files changed (1) hide show
  1. jv_id_asr_split.py +13 -5
jv_id_asr_split.py CHANGED
@@ -52,8 +52,10 @@ _LOCAL = False
52
 
53
  _LICENSE = "Attribution-ShareAlike 4.0 International"
54
 
55
- _URLS = {
56
- _DATASETNAME: "https://www.openslr.org/resources/35/asr_javanese_{}.zip",
 
 
57
  }
58
 
59
  _SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION] # example: [Tasks.TRANSLATION, Tasks.NAMED_ENTITY_RECOGNITION, Tasks.RELATION_EXTRACTION]
@@ -111,13 +113,19 @@ class JvIdASR(datasets.GeneratorBasedBuilder):
111
  )
112
 
113
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
114
- urls = _URLS[_DATASETNAME]
115
-
116
  return [
117
  datasets.SplitGenerator(
118
  name=datasets.Split.TRAIN,
119
- gen_kwargs={"filepath": dl_manager.download_and_extract(urls.format(str(0)))},
120
  ),
 
 
 
 
 
 
 
 
121
  ]
122
 
123
  def _generate_examples(self, filepath: str):
 
52
 
53
  _LICENSE = "Attribution-ShareAlike 4.0 International"
54
 
55
+ _URLs = {
56
+ "jv_id_asr_train": "https://univindonesia-my.sharepoint.com/:u:/g/personal/bimasena_putra_office_ui_ac_id/EV7Bg0Ik0t5OmlQhDSsiW84BXgTTJwEgqnuv1E-RAzcYfw?e=46bm2H&download=1",
57
+ "jv_id_asr_dev": "https://univindonesia-my.sharepoint.com/:u:/g/personal/bimasena_putra_office_ui_ac_id/EfnpOTriq6VNiiPpYYoV5TEBIhHE77NNSo2jcM-dXvJyiQ?e=SFtYUY&download=1",
58
+ "jv_id_asr_test": "https://univindonesia-my.sharepoint.com/:u:/g/personal/bimasena_putra_office_ui_ac_id/EQWc1L4e5RVJuwgg4BZssooBqn8cxAlbwsHdJG-_OUBpVQ?e=tcqwYc&download=1",
59
  }
60
 
61
  _SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION] # example: [Tasks.TRANSLATION, Tasks.NAMED_ENTITY_RECOGNITION, Tasks.RELATION_EXTRACTION]
 
113
  )
114
 
115
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
 
 
116
  return [
117
  datasets.SplitGenerator(
118
  name=datasets.Split.TRAIN,
119
+ gen_kwargs={"filepath": dl_manager.download_and_extract(_URLs["jv_id_asr_train"])},
120
  ),
121
+ datasets.SplitGenerator(
122
+ name=datasets.Split.VALIDATION,
123
+ gen_kwargs={"filepath": dl_manager.download_and_extract(_URLs["jv_id_asr_dev"])},
124
+ ),
125
+ datasets.SplitGenerator(
126
+ name=datasets.Split.TEST,
127
+ gen_kwargs={"filepath": dl_manager.download_and_extract(_URLs["jv_id_asr_test"])},
128
+ )
129
  ]
130
 
131
  def _generate_examples(self, filepath: str):