Update zeroth_korean.py
Browse files- zeroth_korean.py +1 -1
zeroth_korean.py
CHANGED
@@ -100,7 +100,7 @@ class ZerothKoreanASR(datasets.GeneratorBasedBuilder):
|
|
100 |
line = line.strip()
|
101 |
key, transcript = line.split(" ", 1)
|
102 |
audio_file = f"{key}.flac"
|
103 |
-
speaker_id, chapter_id = [int(el) for el in key.split("
|
104 |
example = {
|
105 |
"id": key,
|
106 |
"speaker_id": speaker_id,
|
|
|
100 |
line = line.strip()
|
101 |
key, transcript = line.split(" ", 1)
|
102 |
audio_file = f"{key}.flac"
|
103 |
+
speaker_id, chapter_id = [int(el) for el in key.split("_")[:2]]
|
104 |
example = {
|
105 |
"id": key,
|
106 |
"speaker_id": speaker_id,
|