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

Most_similar doesn't work for un-normalized vectors #57

Open
Lynx1820 opened this issue Jul 25, 2019 · 0 comments
Open

Most_similar doesn't work for un-normalized vectors #57

Lynx1820 opened this issue Jul 25, 2019 · 0 comments

Comments

@Lynx1820
Copy link

Hi! Below is the code where most_similar doesn't work as I expect.
Code Snippet:

word_en = Magnitude("english_word_emb.magnitude", normalized = False)
word = word_en.query("cat")
word_en.most_similar(word)
[('guerrillas', 4.485707), ('japaneses', 3.4920607), ('prosecutors', 2.6029253), ('person', 0.4240542), ('robert', 0.4213551), ('anton', 0.4195432), ('pattinson', 0.418786), ('dave', 0.41877228), ('ricardo', 0.41841233), ('blair', 0.4181792)]

Since I know "cat" is a key in my magnitude file, I expect that the most similar word vector will be the vector for "cat".

Thank you in advanced!

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