There is a efficient way to find the adjective corresponding to a subject?
def find_ADJ(NOUN, sentence):
return (NOUN, ADJ)
sentence = "I have a blue car that was a gift from my wife who is beautiful"
INPUT: find_ADJ(car,sentence)
OUTPUT: (car, blue)
INPUT: find_ADJ(wife,sentence)
OUTPUT: (wife, beautiful)
*Or return more than one adjetive
I have tried to do things with Spacy (pos_ and dep_) but without results. Do someone know a library or a way to do what I am looking for? Thanks you