Skip to content

Commit

Permalink
fix: fix param propagation in parallel embed in bm25
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Dec 10, 2024
1 parent 3d531cf commit e3c63f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fastembed/sparse/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ def _embed_documents(
"k": self.k,
"b": self.b,
"avg_len": self.avg_len,
"language": self.language,
"token_max_length": self.token_max_length,
"disable_stemmer": self.disable_stemmer,
}
pool = ParallelWorkerPool(
num_workers=parallel or 1,
Expand Down

0 comments on commit e3c63f5

Please sign in to comment.