I have a string s= "Mr.X is awesome. He is amazing.Mr.Y is awesome too."
I need to extract all the adjectives from the string along with the count of each adjectives. For example This string has adjectives "awesome","amazing" with a count of 2 for awesome and 1 for amazing.
for extracting adjectives , I have used NLTK. This is the code for extracting adjectives,
adjectives =[token for token, pos in nltk.pos_tag(nltk.word_tokenize(b)) if pos.startswith('JJ')]
I need the code to get a counter for each adjective in the string. It should be like adjectives : counter