Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Semantic Router
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
aurelio-labs
Semantic Router
Commits
20d16a82
Commit
20d16a82
authored
1 year ago
by
Ismail Ashraq
Browse files
Options
Downloads
Patches
Plain Diff
remove test code
parent
d5512014
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
semantic_router/encoders/bm25.py
+1
-5
1 addition, 5 deletions
semantic_router/encoders/bm25.py
with
1 addition
and
5 deletions
semantic_router/encoders/bm25.py
+
1
−
5
View file @
20d16a82
...
@@ -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
"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment