Oct-19-2020, 09:47 AM
Hi,
I have a dataframe of the following structure:
Column 1 contains individual words
Column 2 contains the count of each word
Now, I need to pick out the rows that contain only occupation words, such as barber, bartender, clerk, etc. I have already obtained this list of occupation words from WordNet, as follows:
I have a dataframe of the following structure:
Column 1 contains individual words
Column 2 contains the count of each word
Now, I need to pick out the rows that contain only occupation words, such as barber, bartender, clerk, etc. I have already obtained this list of occupation words from WordNet, as follows:
ss = wn.synsets('person')[0] joblist = ss.hyponyms()How can I do this subsetting? Thanks for any help.