I want to compare two words with similarity score. I used wordnet from nltk.corpus.
from nltk.corpus import wordnet
nltk.download('wordnet')
w1 = wordnet.synset("price" '.n.01') #wordnet.lemmas(i2)[0]
w2 = wordnet.synset("amount" + '.n.01')
print(w1.wup_similarity(w2))
I got similarity score, but, it works with only between noun, but, what I need is to compare noun between adjective or other type of word.
For example bellow , I need to compare word like "expensive" (adjective) with "price".
I want preferably a library with pre-entrained model because I need a model that can work with any words in any domain
What about word embedding ?