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

Get most similar senses on multiple senses. #146

Open
mirfan899 opened this issue Feb 13, 2022 · 2 comments
Open

Get most similar senses on multiple senses. #146

mirfan899 opened this issue Feb 13, 2022 · 2 comments

Comments

@mirfan899
Copy link

Is there a way to get multiple most similar senses using array of senses?

I believe current solution gives average to multiple senses. For example I want to get most similar senses on two or more senses i.e.

from sense2vec import Sense2Vec

s2v = Sense2Vec().from_disk("./s2v_reddit_2015_md")
query = ["bot|NOUN", "think|VERB" ]
# gives averaged senses
s2v.most_similar(query, n=10)
[('sup(This|ADV', 0.7275), ('idontbelieveyou.gif|NOUN', 0.7244), ('TLDR|NOUN', 0.6689), ('Original_Post|NOUN', 0.6167)]

# But I want to get separate most similar senses for each sense. Like this.
[[('sup(This|ADV', 0.7137), ('Original_Post|NOUN', 0.6189), ('TLDR|NOUN', 0.6129)], [('but|CONJ', 0.9187), ('obviously|ADV', 0.9084), ('honestly|ADV', 0.9006)]]
@zanek
Copy link

zanek commented Feb 15, 2022

I have the same question too !

@zanek
Copy link

zanek commented Feb 21, 2022

Bump ~ Please answer someone

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

2 participants