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

Bm25 multilanguage #318

Merged
merged 8 commits into from
Aug 12, 2024
Merged

Bm25 multilanguage #318

merged 8 commits into from
Aug 12, 2024

Conversation

I8dNLo
Copy link
Contributor

@I8dNLo I8dNLo commented Aug 3, 2024

Added support of multilanguages stopwords for bm25
Mere refactoring of bm25
Tests for multilanguages

@I8dNLo I8dNLo requested a review from joein August 3, 2024 12:51
# Conflicts:
#	fastembed/image/onnx_image_model.py
#	tests/test_image_onnx_embeddings.py
@I8dNLo I8dNLo requested a review from joein August 8, 2024 09:04
docs = ["Mangez-vous vraiment des grenouilles?", "Je suis au lit"]

model = SparseTextEmbedding(model_name=model_name, language="french")
embeddings = list(model.embed(docs, parallel=2))[:2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
embeddings = list(model.embed(docs, parallel=2))[:2]
embeddings = list(model.embed(docs))[:2]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've already tested parallel above, i think it's better to keep this test simpler and check only one thing

@I8dNLo I8dNLo requested a review from joein August 9, 2024 11:53
@joein joein merged commit 782273f into main Aug 12, 2024
17 checks passed
@joein joein deleted the bm25-multilanguage branch August 12, 2024 09:40
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.

2 participants