fix bug of completed sentence chunking. tested on faster-whisper in en language
This commit is contained in:
parent
8f32dea5ca
commit
a60c64c831
1 changed files with 1 additions and 0 deletions
|
|
@ -389,6 +389,7 @@ class OnlineASRProcessor:
|
||||||
fsent = sent
|
fsent = sent
|
||||||
while cwords:
|
while cwords:
|
||||||
b,e,w = cwords.pop(0)
|
b,e,w = cwords.pop(0)
|
||||||
|
w = w.strip()
|
||||||
if beg is None and sent.startswith(w):
|
if beg is None and sent.startswith(w):
|
||||||
beg = b
|
beg = b
|
||||||
elif end is None and sent == w:
|
elif end is None and sent == w:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue