BrunoHays commited on
Commit
b626430
1 Parent(s): accc8a5

Update multilingual-TEDX-fr.py

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