-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Possible bug in WmdSimilarity #3269
Comments
Thanks for reporting Tedo! Seems like an omission during the WmdDistance refactoring in #2698, where |
@tvrbanec Thank you for reporting this. Are you interested in making a PR to fix the problem? |
@mpenkov I'd like to, but I do not know how to use Github. It has not come to my agenda yet. :( |
@mpenkov Hi! I am a new user of gensim and I am eager to contribute to the community. Do you still need people to fix this problem? My intended solution is to fix the self.str() function by changing self.w2v_model.wv.syn0.shape[1] into self.wv.wv.syn0.shape[1], something like this. I will submit a PR solving this problem. Thank you so much! |
Sure, @DingQK , just make sure you have tests that demonstrate the correctness of your solution |
Problem description
I wanted to check if WmdSimilarity is any better (it should not be) from multiprocessing wmdistance, but it did not work at all.
So, I made a little example and the result was exactly the same: AttributeError: 'WmdSimilarity' object has no attribute 'w2v_model'
Steps/code/corpus to reproduce
RESULTS:
Versions
Please provide the output of:
Linux-5.10.0-9-amd64-x86_64-with-glibc2.31
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
Bits 64
NumPy 1.21.2
SciPy 1.7.1
gensim 4.1.1
FAST_VERSION 1
The text was updated successfully, but these errors were encountered: