diff --git a/fastembed/sparse/bm25.py b/fastembed/sparse/bm25.py index b6ac59fda..42d5f0787 100644 --- a/fastembed/sparse/bm25.py +++ b/fastembed/sparse/bm25.py @@ -237,12 +237,7 @@ def embed( def _stem(self, tokens: list[str]) -> list[str]: stemmed_tokens: list[str] = [] - for token in tokens: - lower_token = token.lower() - - if token in self.punctuation: - continue - + for lower_token in tokens: if lower_token in self.stopwords: continue