-
-
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
wmdistance returns inf for single words in vocabulary #1073
Comments
Thanks! I will update my installation of the module and try again. |
@Tixierae did an update fix the issue? |
Closing as abandoned. |
Sorry for the delay in response. Updating indeed fixed the issue. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following:
returns
inf
, when obviously it should be zero (according to the documentation,float(inf)
is only returned for out-of-vocab words).Interestingly,
model.wmdistance('obama','obama')
does return zero, andmodel.wmdistance(['obama'],['obama','illinois'])
,model.wmdistance(['obama'],['illinois'])
both work. The problem only seems to arise for single identical words.The text was updated successfully, but these errors were encountered: