Hello. I stuck here. Could you tell me how can I count words based on the tags on the second column?
I want to find mostly used words using .most_common() using the categorize: most 10 in VB(Verb), 10 in Noun.
Hello. I stuck here. Could you tell me how can I count words based on the tags on the second column?
I want to find mostly used words using .most_common() using the categorize: most 10 in VB(Verb), 10 in Noun.
To spell out what Ari Cooper-Davis suggested:
pos.loc[pos.tag == 'VBN'].word.value_counts()
pos.loc[pos.tag == 'TO'].word.value_counts()
etc.