Update instructions_utils.py

This commit is contained in:
Wind 2026-01-26 17:24:12 +07:00 committed by GitHub
parent 7feb826fed
commit 42601e2325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1644,8 +1644,6 @@ def split_into_sentences(text):
text = re.sub(" " + _SUFFIXES + "[.]", " \\1<prd>", text)
text = re.sub(" " + _ALPHABETS + "[.]", " \\1<prd>", text)
# Handle Unicode right double quotation mark (U+201D)
if '"' in text:
text = text.replace('."', '".')
if '"' in text:
text = text.replace('."', '".')
if "!" in text: