Skip to content

Commit

Permalink
refactor: fix stopwords type
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Dec 10, 2024
1 parent 25ff9e3 commit 3d531cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastembed/sparse/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(
self.disable_stemmer = disable_stemmer

if disable_stemmer:
self.stopwords = []
self.stopwords = set()
self.stemmer = None
else:
self.stopwords = set(self._load_stopwords(self._model_dir, self.language))
Expand Down

0 comments on commit 3d531cf

Please sign in to comment.