Update multilingual-TEDX-fr.py
Browse files- multilingual-TEDX-fr.py +1 -1
multilingual-TEDX-fr.py
CHANGED
@@ -99,7 +99,7 @@ class TEDX(datasets.GeneratorBasedBuilder):
|
|
99 |
speaker_paths.append(Path("data") / Path(split_name) / Path("wav") / Path(f"{segment['speaker_id']}.flac"))
|
100 |
segments_by_speaker.append([])
|
101 |
segments_by_speaker[-1].append(Utterance(speaker_id=segment["speaker_id"],
|
102 |
-
index=int(segment["segment_id"].split("_")[1]),
|
103 |
sentence=sentence,
|
104 |
start_timestamp=segment["start_timestamp"],
|
105 |
end_timestamp=segment["end_timestamp"]
|
|
|
99 |
speaker_paths.append(Path("data") / Path(split_name) / Path("wav") / Path(f"{segment['speaker_id']}.flac"))
|
100 |
segments_by_speaker.append([])
|
101 |
segments_by_speaker[-1].append(Utterance(speaker_id=segment["speaker_id"],
|
102 |
+
index=int(segment["segment_id"].split("_")[-1]),
|
103 |
sentence=sentence,
|
104 |
start_timestamp=segment["start_timestamp"],
|
105 |
end_timestamp=segment["end_timestamp"]
|