diff --git a/haystack/components/preprocessors/nltk_document_splitter.py b/haystack/components/preprocessors/nltk_document_splitter.py index e0570eea8b..d6f947ebfc 100644 --- a/haystack/components/preprocessors/nltk_document_splitter.py +++ b/haystack/components/preprocessors/nltk_document_splitter.py @@ -7,7 +7,7 @@ from haystack import Document, component, logging from haystack.components.preprocessors.document_splitter import DocumentSplitter -from haystack.components.preprocessors.utils import Language, SentenceSplitter, nltk_imports +from haystack.components.preprocessors.sentence_tokenizer import Language, SentenceSplitter, nltk_imports from haystack.core.serialization import default_to_dict from haystack.utils import serialize_callable