Skip to content

Commit

Permalink
Text splitting: DeepL Text Split on white space character
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshbedre authored Apr 30, 2023
1 parent 18e008a commit 65498e6
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 65498e6

Please sign in to comment.