gsi-upm / sematch

semantic similarity framework for knowledge graph
http://gsi-upm.github.io/sematch/
Other
432 stars 111 forks source link

similarity match for cooling and air condition is zero #7

Closed lokeshkumarn closed 7 years ago

lokeshkumarn commented 7 years ago

similarity match for cooling and air condition is zero

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

hopple commented 7 years ago

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