clr commited on
Commit
f64853d
1 Parent(s): 1f4d302

Update ctcalign.py

Browse files
Files changed (1) hide show
  1. ctcalign.py +1 -1
ctcalign.py CHANGED
@@ -232,7 +232,7 @@ def prep_transcript(xcp,lang):
232
  xcp = xcp.replace(' ', ' ')
233
  xcp = xcp.replace(' ',d[lang]['model_word_separator'])
234
  label_ids = [d[lang]['labels_dict'][c] for c in xcp]
235
- label_ids = [d[lang]['blank_id']] + label_ids [d[lang]['blank_id']]
236
  xcp = f"{d[lang]['model_word_separator']}{xcp}{d[lang]['model_word_separator']}"
237
  return xcp, label_ids
238
 
 
232
  xcp = xcp.replace(' ', ' ')
233
  xcp = xcp.replace(' ',d[lang]['model_word_separator'])
234
  label_ids = [d[lang]['labels_dict'][c] for c in xcp]
235
+ label_ids = [d[lang]['blank_id']] + label_ids + [d[lang]['blank_id']]
236
  xcp = f"{d[lang]['model_word_separator']}{xcp}{d[lang]['model_word_separator']}"
237
  return xcp, label_ids
238