AymanElmar commited on
Commit ·
78bf72d
1
Parent(s): 5ca1b5b
targz
Browse files
joha.py
CHANGED
|
@@ -133,10 +133,10 @@ class johaDataset(datasets.GeneratorBasedBuilder):
|
|
| 133 |
), f"The file should have {data_fields} as column names, but has {column_names}"
|
| 134 |
for line in lines[1:]:
|
| 135 |
field_values = line.decode("utf-8").strip().split("\t")
|
| 136 |
-
print("field_values", field_values)
|
| 137 |
# set full path for mp3 audio file
|
| 138 |
-
audio_path = field_values[path_idx]
|
| 139 |
all_field_values[audio_path] = field_values
|
|
|
|
| 140 |
# Else, read the audio file and yield an example
|
| 141 |
# elif path.startswith(path_to_clips):
|
| 142 |
# assert metadata_found, "Found audio clips before the metadata TSV file."
|
|
|
|
| 133 |
), f"The file should have {data_fields} as column names, but has {column_names}"
|
| 134 |
for line in lines[1:]:
|
| 135 |
field_values = line.decode("utf-8").strip().split("\t")
|
|
|
|
| 136 |
# set full path for mp3 audio file
|
| 137 |
+
audio_path = "/".join([path_to_clips,field_values[path_idx]])
|
| 138 |
all_field_values[audio_path] = field_values
|
| 139 |
+
print("audio_path", audio_path)
|
| 140 |
# Else, read the audio file and yield an example
|
| 141 |
# elif path.startswith(path_to_clips):
|
| 142 |
# assert metadata_found, "Found audio clips before the metadata TSV file."
|