Padomin commited on
Commit
0f586a1
1 Parent(s): 33ae0f6

Update coraal-asr.py

Browse files
Files changed (1) hide show
  1. coraal-asr.py +2 -2
coraal-asr.py CHANGED
@@ -133,8 +133,8 @@ class coraal_asr(datasets.GeneratorBasedBuilder):
133
  windowed_texts_asr = windowed([''] * self.config.n_fronts + texts_asr + [''] * self.config.n_rears, self.config.n_bodies + self.config.n_fronts + self.config.n_rears)
134
  windowed_texts = windowed(texts, self.config.n_bodies)
135
  else:
136
- windowed_texts_asr = windowed([''] * self.config.n_fronts + texts_asr + [''] * self.config.n_rears, self.config.n_bodies + self.config.n_fronts + self.config.n_rears, fillvalue='', step=n_bodies)
137
- windowed_texts = windowed(texts, self.config.n_bodies, fillvalue='', step=n_bodies)
138
 
139
  for text_asr, text, utt in zip(windowed_texts_asr, windowed_texts, utterances):
140
  src = ''
 
133
  windowed_texts_asr = windowed([''] * self.config.n_fronts + texts_asr + [''] * self.config.n_rears, self.config.n_bodies + self.config.n_fronts + self.config.n_rears)
134
  windowed_texts = windowed(texts, self.config.n_bodies)
135
  else:
136
+ windowed_texts_asr = windowed([''] * self.config.n_fronts + texts_asr + [''] * self.config.n_rears, self.config.n_bodies + self.config.n_fronts + self.config.n_rears, fillvalue='', step=self.config.n_bodies)
137
+ windowed_texts = windowed(texts, self.config.n_bodies, fillvalue='', step=self.config.n_bodies)
138
 
139
  for text_asr, text, utt in zip(windowed_texts_asr, windowed_texts, utterances):
140
  src = ''