I have a long list of words :
verbs = ['be','have', 'find', 'use', 'show', 'increase', 'detect', 'do', 'determine', 'demonstrate', 'observe','suggest', ...]
And I want to make clusters from these words based on which ones are synonyms (semantically close). I want to compare each element of the list with all the rest and for those that have a similarity score > 0.7 , group them together. I am using wordnet but I keep getting this error:
for i, verb in enumerate(verbs):
for j in range(i + 1, len(verbs)):
verbs[i].wup_similarity(verbs[j])
ERROR MESSAGE :
----> verbs[i].wup_similarity(verbs[j])
----> AttributeError: 'str' object has no attribute 'wup_similarity'
Maybe that's not even the right approach, but can anyone help?