Update ctcalign.py
Browse files- 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 |
|