Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clamp document_frequency in bm25 score before_each(). #25

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

tmpfs
Copy link
Collaborator

@tmpfs tmpfs commented Jul 2, 2024

Closes #24.

@marcus-pousette
Copy link
Collaborator

Looks good! hough it would be nice to have a test to make sure this issue does not appear again later :)

@marcus-pousette
Copy link
Collaborator

marcus-pousette commented Jul 2, 2024

I have no problem merging this how it is, but want you to have the opportunity to add test if you like! @tmpfs

@tmpfs
Copy link
Collaborator Author

tmpfs commented Jul 3, 2024

Good call @marcus-pousette , I've added a simple test spec which triggers the code path and ensures no panic!

LGTM 🙏

@marcus-pousette
Copy link
Collaborator

awesomee!

@marcus-pousette marcus-pousette merged commit 3cb82d9 into quantleaf:master Jul 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: attempt to subtract with overflow
2 participants