MahmoudAshraf commited on
Commit
2d856eb
1 Parent(s): afb086c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -222,13 +222,13 @@ tokens_starred, text_starred = preprocess_text(
222
  language=language,
223
  )
224
 
225
- segments, scores, blank_id = get_alignments(
226
  emissions,
227
  tokens_starred,
228
  alignment_tokenizer,
229
  )
230
 
231
- spans = get_spans(tokens_starred, segments, alignment_tokenizer.decode(blank_id))
232
 
233
  word_timestamps = postprocess_results(text_starred, spans, stride, scores)
234
  ```
 
222
  language=language,
223
  )
224
 
225
+ segments, scores, blank_token = get_alignments(
226
  emissions,
227
  tokens_starred,
228
  alignment_tokenizer,
229
  )
230
 
231
+ spans = get_spans(tokens_starred, segments, blank_token)
232
 
233
  word_timestamps = postprocess_results(text_starred, spans, stride, scores)
234
  ```