Merge pull request #36 from luweigen/bug-chunk_completed_sentence

fix bug of completed sentence chunking. tested on faster-whisper in e…
This commit is contained in:
Dominik Macháček
2023-12-19 13:39:37 +01:00
committed by GitHub

View File

@@ -389,6 +389,7 @@ class OnlineASRProcessor:
fsent = sent
while cwords:
b,e,w = cwords.pop(0)
w = w.strip()
if beg is None and sent.startswith(w):
beg = b
elif end is None and sent == w: