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

Computer freezes when trying to call s2v_most_similar() #129

Open
ElVi2 opened this issue Feb 1, 2021 · 2 comments
Open

Computer freezes when trying to call s2v_most_similar() #129

ElVi2 opened this issue Feb 1, 2021 · 2 comments

Comments

@ElVi2
Copy link

ElVi2 commented Feb 1, 2021

I am trying to use sense2vec with my text processing project to automatically generate rules for matching, and I am having problems with attempts to find synonyms of words specified in a text file. For some reason, the entire computer freezes whenever I try to find synonyms. I tried to write the example code, and it works fine, though it did slightly stutter on model load. I tried to make the code as close to the example as possible, but for some reason it still doesn't prevent freezing.

This is the code initializing the vectors downloaded:
image

This is the code where the function is called:
image

This is my synonym function, also a modified version of one of the examples( I don't need any token but the first since the string that gets passed only consists of one word anyway):
image

I also tried to double check the exact values that get passed to the function, but that didn't yield any results either. As the image shows, the word that gets passed into the function is not some unusual string either, and the documentation doesn't mention any freezing issues, which is why I thought I would seek help here.

@myeghaneh
Copy link

I can also report the same problem

@agata18
Copy link

agata18 commented Nov 1, 2022

I get the same with reddit_2015, any solution?

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

3 participants