kaushal98b commited on
Commit
8761f7d
1 Parent(s): 0edda23

Modify train links

Browse files
Files changed (1) hide show
  1. kathbath.py +10 -1
kathbath.py CHANGED
@@ -104,7 +104,16 @@ class Kathbath(datasets.GeneratorBasedBuilder):
104
  metadata_path = {}
105
  split_type = {"train": datasets.Split.TRAIN, "valid": datasets.Split.VALIDATION, "test_unknown": datasets.Split.TEST, "test_known": datasets.Split.TEST}
106
  for split in split_type:
107
- audio_path[split] = dl_manager.download(f"{_DATA_URL}/audio_{split}.tar")
 
 
 
 
 
 
 
 
 
108
  local_extracted_archive[split] = dl_manager.extract(audio_path[split]) if not dl_manager.is_streaming else None
109
  metadata_path[split] = dl_manager.download(f"{_DATA_URL}/metadata_{split}.tsv")
110
  path_to_clips = "kb_data_clean_m4a"
 
104
  metadata_path = {}
105
  split_type = {"train": datasets.Split.TRAIN, "valid": datasets.Split.VALIDATION, "test_unknown": datasets.Split.TEST, "test_known": datasets.Split.TEST}
106
  for split in split_type:
107
+
108
+ if split == 'train':
109
+ audio_paths = [
110
+ f"{_DATA_URL}/audio_{split}.tar.partaa",
111
+ f"{_DATA_URL}/audio_{split}.tar.partab",
112
+ f"{_DATA_URL}/audio_{split}.tar.partac",
113
+ ]
114
+ else:
115
+ audio_paths = [f"{_DATA_URL}/audio_{split}.tar"]
116
+ audio_path[split] = dl_manager.download(audio_paths)
117
  local_extracted_archive[split] = dl_manager.extract(audio_path[split]) if not dl_manager.is_streaming else None
118
  metadata_path[split] = dl_manager.download(f"{_DATA_URL}/metadata_{split}.tsv")
119
  path_to_clips = "kb_data_clean_m4a"