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 query takes forever #67

Open
bbryndak opened this issue Dec 5, 2019 · 0 comments
Open

Most similar query takes forever #67

bbryndak opened this issue Dec 5, 2019 · 0 comments

Comments

@bbryndak
Copy link

bbryndak commented Dec 5, 2019

I am trying to use pymagitude on Ubuntu virtual machine, but i hit the following problem with the medium dataset:

import pymagnitude

if __name__=="__main__":
    word2vec = pymagnitude.Magnitude('data/GoogleNews-vectors-negative300.magnitude')
    print(word2vec.query('cat'))
    print(word2vec.most_similar('cat', topn=20))
    word2vec.close()

The normal queries seem to work without issues, but when I try to use the most_similar query, it never completes. The same problem occurs with large dataset and most_similar_approx query. I have tried to change lazy_loading and eager arguments, but it didn't help. Any ideas on what could be the problem?

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