Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions fastembed/sparse/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down