From 65498e6c9bfb48aaff3af9b2c7d803029015da79 Mon Sep 17 00:00:00 2001 From: hiteshbedre <32206192+hiteshbedre@users.noreply.github.com> Date: Sun, 30 Apr 2023 14:49:29 +0530 Subject: [PATCH] Text splitting: DeepL Text Split on white space character --- translatepy/translators/deepl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translatepy/translators/deepl.py b/translatepy/translators/deepl.py index a648c36..abf5339 100644 --- a/translatepy/translators/deepl.py +++ b/translatepy/translators/deepl.py @@ -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):