kresnik commited on
Commit
5225ee1
·
1 Parent(s): f99420e

Update zeroth_korean.py

Browse files
Files changed (1) hide show
  1. 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("-")[:2]]
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,