mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
fix linter errors
This commit is contained in:
parent
afab28dfa9
commit
f18d46549d
1 changed files with 3 additions and 2 deletions
|
|
@ -1645,8 +1645,9 @@ def split_into_sentences(text):
|
|||
text = re.sub(" " + _SUFFIXES + "[.] " + _STARTERS, " \\1<stop> \\2", text)
|
||||
text = re.sub(" " + _SUFFIXES + "[.]", " \\1<prd>", text)
|
||||
text = re.sub(" " + _ALPHABETS + "[.]", " \\1<prd>", text)
|
||||
if """ in text:
|
||||
text = text.replace("."", "".")
|
||||
# Handle Unicode right double quotation mark (U+201D)
|
||||
if '"' in text:
|
||||
text = text.replace('."', '".')
|
||||
if '"' in text:
|
||||
text = text.replace('."', '".')
|
||||
if "!" in text:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue