Skip to content

Commit 65498e6

Browse files
authored
Text splitting: DeepL Text Split on white space character
1 parent 18e008a commit 65498e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translatepy/translators/deepl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from translatepy.utils.annotations import Tuple, List
2020
from translatepy.utils.request import Request
2121

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

2424

2525
class DeeplTranslateException(BaseTranslateException):

0 commit comments

Comments
 (0)