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:
This is the code where the function is called:
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):
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.
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](https://user-images.githubusercontent.com/48282124/106483160-8564e080-64ae-11eb-8322-e49e1b8a0cf1.png)
This is the code where the function is called:![image](https://user-images.githubusercontent.com/48282124/106482878-38810a00-64ae-11eb-962b-e0b7dd7c82af.png)
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](https://user-images.githubusercontent.com/48282124/106485533-fd340a80-64b0-11eb-8552-3ee1089bc0ba.png)
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.