You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
fromsense2vecimportSense2Vecs2v=Sense2Vec().from_disk("./s2v_reddit_2015_md")
query= ["bot|NOUN", "think|VERB" ]
# gives averaged sensess2v.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)]]
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: