Skip to content

Commit

Permalink
new: add modifier flag into bm models config (#299)
Browse files Browse the repository at this point in the history
* new: add modifier flag into bm models config

* refactoring: rename modifier field
  • Loading branch information
joein authored Jul 15, 2024
1 parent 54e0f38 commit 0315c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fastembed/sparse/bm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"model_file": "mock.file", # bm25 does not require a model, so we just use a mock
"additional_files": ["stopwords.txt"],
"requires_idf": True,
},
]

Expand Down
1 change: 1 addition & 0 deletions fastembed/sparse/bm42.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"model_file": "model.onnx",
"additional_files": ["stopwords.txt"],
"requires_idf": True,
},
]

Expand Down

0 comments on commit 0315c3b

Please sign in to comment.