Yhoga commited on
Commit
c1500d2
·
1 Parent(s): fb92455
Files changed (1) hide show
  1. pbl_asr_sunda.py +5 -5
pbl_asr_sunda.py CHANGED
@@ -36,9 +36,9 @@ _HOMEPAGE = "https://indonlp.github.io/nusa-catalogue/card.html?su_id_asr"
36
  _LICENSE = "Attribution-ShareAlike 4.0 International."
37
 
38
  _URLs = {
39
- "su_id_asr_train": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/EYttia-d8ehDhxJgGmy6nawBu3PdPh7-5rFRsTb1X195Fg?e=8u0OV4&download=1",
40
- "su_id_asr_dev": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/EWnq4nshl_pFrZYAdledp4MBMfFEoWSuSSNsKXHep6r5Jw?e=8qMTQO&download=1",
41
- "su_id_asr_test": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/Ee7vscGVzW5BoS9Eonf1vo8B2C2dySA4YXpCOCaim6gzlg?e=nhWpbn&download=1",
42
  }
43
 
44
  _SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION]
@@ -112,7 +112,7 @@ class SuIdASR(datasets.GeneratorBasedBuilder):
112
 
113
  if self.config.schema == "source" or self.config.schema == "seacrowd_sptext":
114
 
115
- tsv_file = os.path.join(filepath, "asr_sundanese", "utt_spk_text.tsv")
116
 
117
  with open(tsv_file, "r") as file:
118
  tsv_file = csv.reader(file, delimiter="\t")
@@ -120,7 +120,7 @@ class SuIdASR(datasets.GeneratorBasedBuilder):
120
  for line in tsv_file:
121
  audio_id, speaker_id, transcription_text = line[0], line[1], line[2]
122
 
123
- wav_path = os.path.join(filepath, "asr_sundanese", "data", "{}".format(audio_id[:2]), "{}.flac".format(audio_id))
124
 
125
  if os.path.exists(wav_path):
126
  if self.config.schema == "source":
 
36
  _LICENSE = "Attribution-ShareAlike 4.0 International."
37
 
38
  _URLs = {
39
+ "su_id_asr_train": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/EXwjyGLE-DFDniUTeBIR10cBqfe698rw-YNxVtwr8paptw?e=hyIhBX&download=1",
40
+ "su_id_asr_dev": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/EVxldGM3N2REtfX32WRVpDMB14Qel99nwhUP9OEQMUpN9A?e=uuR2PO&download=1",
41
+ "su_id_asr_test": "https://univindonesia-my.sharepoint.com/:u:/g/personal/fadrian_yhoga_office_ui_ac_id/Ec_cXw3rQ6ZFljfpPs2tvN8BDgST3-Lh01NlwEOUjk5k4Q?e=ThY5wQ&download=1",
42
  }
43
 
44
  _SUPPORTED_TASKS = [Tasks.SPEECH_RECOGNITION]
 
112
 
113
  if self.config.schema == "source" or self.config.schema == "seacrowd_sptext":
114
 
115
+ tsv_file = os.path.join(filepath, f"asr_sundanese", "utt_spk_text.tsv")
116
 
117
  with open(tsv_file, "r") as file:
118
  tsv_file = csv.reader(file, delimiter="\t")
 
120
  for line in tsv_file:
121
  audio_id, speaker_id, transcription_text = line[0], line[1], line[2]
122
 
123
+ wav_path = os.path.join(filepath, f"asr_sundanese", "{}.flac".format(audio_id))
124
 
125
  if os.path.exists(wav_path):
126
  if self.config.schema == "source":