Skip to content
Snippets Groups Projects
Commit 20d16a82 authored by Ismail Ashraq's avatar Ismail Ashraq
Browse files

remove test code

parent d5512014
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,7 @@ class BM25Encoder(BaseEncoder): ...@@ -19,11 +19,7 @@ class BM25Encoder(BaseEncoder):
"You can install it with: `pip install semantic-router[hybrid]`" "You can install it with: `pip install semantic-router[hybrid]`"
) )
logger.info("Downloading and initializing BM25 model parameters.") logger.info("Downloading and initializing BM25 model parameters.")
# self.model = encoder.default() self.model = encoder.default()
self.model = encoder()
self.model.fit(
corpus=["test test", "this is another message", "hello how are you"]
)
params = self.model.get_params() params = self.model.get_params()
doc_freq = params["doc_freq"] doc_freq = params["doc_freq"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment