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

performance is really not that good #37

Open
wasifmasood opened this issue Jun 7, 2024 · 0 comments
Open

performance is really not that good #37

wasifmasood opened this issue Jun 7, 2024 · 0 comments

Comments

@wasifmasood
Copy link

Hello team,

thanks a lot for making your contribution open-source. I did some quick tests and got really bad results. E.g., look at the following example where I am measuring cosine distance between "cancer" and "leukemia", got a score of 0.27. Similarly the cosine distance between dog and dobermann is only 0.367. I am doing it the following way:

model = sent2vec.Sent2vecModel() model.load_model(model_path) emb1 = model.embed_sentence("dog") emb2 = model.embed_sentence("dobermann") cosine_similarities = cosine_similarity(emb1, emb2).flatten() print(cosine_similarities)

Can you pls comment whether I am doing something wrong here.

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

No branches or pull requests

1 participant