Skip to content

Commit

Permalink
Update haystack/components/preprocessors/document_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Fiorucci <[email protected]>
  • Loading branch information
davidsbatista and anakin87 authored Dec 12, 2024
1 parent ed47997 commit a82614e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/components/preprocessors/document_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a82614e

Please sign in to comment.