From 3d531cfa99510347f6e0ca1894a63a4a21c506ad Mon Sep 17 00:00:00 2001 From: George Panchuk Date: Tue, 10 Dec 2024 19:14:01 +0100 Subject: [PATCH] refactor: fix stopwords type --- fastembed/sparse/bm25.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastembed/sparse/bm25.py b/fastembed/sparse/bm25.py index 1d7ef36c..2253ef37 100644 --- a/fastembed/sparse/bm25.py +++ b/fastembed/sparse/bm25.py @@ -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))