MahmoudAshraf
commited on
Commit
•
2d856eb
1
Parent(s):
afb086c
Update README.md
Browse files
README.md
CHANGED
@@ -222,13 +222,13 @@ tokens_starred, text_starred = preprocess_text(
|
|
222 |
language=language,
|
223 |
)
|
224 |
|
225 |
-
segments, scores,
|
226 |
emissions,
|
227 |
tokens_starred,
|
228 |
alignment_tokenizer,
|
229 |
)
|
230 |
|
231 |
-
spans = get_spans(tokens_starred, segments,
|
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 |
```
|