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

similarity match for cooling and air condition is zero #7

Closed
lokeshkumarn opened this issue Jul 19, 2017 · 1 comment
Closed

similarity match for cooling and air condition is zero #7

lokeshkumarn opened this issue Jul 19, 2017 · 1 comment

Comments

@lokeshkumarn
Copy link

similarity match for cooling and air condition is zero

wns.word_similarity('cooling','air_condition','li')
0

@hopple
Copy link
Member

hopple commented Jul 28, 2017

If the word is out of vocabulary, similarity computation returns 0.
You can use wns.word2synset to check.
In your case, the 'air_condition' should be 'air_conditioner'.
wns.word2synset('air_conditioner') returns air_conditioner.n.01
and wns.word_similarity('cooling', 'air_conditioner', 'li') returns 0.8186

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

2 participants