Python Forum
Subset dataframe by matching to wordnet synsets
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subset dataframe by matching to wordnet synsets
#1
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:

ss = wn.synsets('person')[0]
joblist = ss.hyponyms()
How can I do this subsetting? Thanks for any help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dropna Subset Not Working In Code eddywinch82 0 3,725 Mar-05-2020, 03:10 PM
Last Post: eddywinch82

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020