I need to measure the similarity between two sentences. For example:
s1 = "she is good a dog "
s2 = "she is nice a heel"
I need to prove that "good" is similar to "nice". For nouns and verbs the measures of similarity by path is working like this pseudo code:
def get max :
for loop
(wn.synset ('dog ')).path_similarity(wn.synset ('animal'))
Result: .33, which is a high value, then these words are related and I can say it's similar. But for adverbs ("nice" and "good") the value .09 is low!
Any ideas?