From a82614e850c6829194d8e9587d7e34069e1748ec Mon Sep 17 00:00:00 2001 From: "David S. Batista" Date: Thu, 12 Dec 2024 15:11:56 +0100 Subject: [PATCH] Update haystack/components/preprocessors/document_splitter.py Co-authored-by: Stefano Fiorucci --- haystack/components/preprocessors/document_splitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py index de2a041737..b3e99924a7 100644 --- a/haystack/components/preprocessors/document_splitter.py +++ b/haystack/components/preprocessors/document_splitter.py @@ -121,9 +121,9 @@ def __init__( # pylint: disable=too-many-positional-arguments # ToDo: remove this warning in the next major release msg = ( "The `split_by='sentence'` no longer splits by '.' and now relies on custom sentence tokenizer " - "based on NLTK. To achieve the previous behaviour `split_by='period'." + "based on NLTK. To achieve the previous behaviour use `split_by='period'." ) - warnings.warn(msg, DeprecationWarning) + warnings.warn(msg) def _init_checks( self,