Skip to content

Commit

Permalink
Merge pull request #83 from hiteshbedre/main
Browse files Browse the repository at this point in the history
Text splitting: DeepL Text Split on white space character
  • Loading branch information
Animenosekai authored Apr 30, 2023
2 parents 18e008a + 65498e6 commit 11650ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translatepy/translators/deepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from translatepy.utils.annotations import Tuple, List
from translatepy.utils.request import Request

SENTENCES_SPLITTING_REGEX = compile('(?<=[.!:?]) +')
SENTENCES_SPLITTING_REGEX = compile('(?<=[.!:?])\s+')


class DeeplTranslateException(BaseTranslateException):
Expand Down

0 comments on commit 11650ca

Please sign in to comment.