Skip to content

Commit

Permalink
removing unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Dec 4, 2024
1 parent 4054c47 commit 6b72a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/recursive_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _check_params(self):
@staticmethod
def _get_custom_sentence_tokenizer():
try:
from haystack.components.preprocessors.sentence_tokenizer import Language, SentenceSplitter, nltk_imports
from haystack.components.preprocessors.sentence_tokenizer import SentenceSplitter
except (LookupError, ModuleNotFoundError):
raise Exception("You need to install NLTK to use this function. You can install it via `pip install nltk`")
return SentenceSplitter(language="en")
Expand Down

0 comments on commit 6b72a17

Please sign in to comment.