Skip to content

antonyms from wordnet - #20

Merged
njtierney merged 2 commits into
njtierney:masterfrom
coolbutuseless:wordnet-antonyms
Nov 27, 2018
Merged

njtierney merged 2 commits into
njtierney:masterfrom
coolbutuseless:wordnet-antonyms

Conversation

@coolbutuseless

@coolbutuseless coolbutuseless commented Nov 27, 2018 •

Copy link
Copy Markdown
Collaborator
  1. Use python to extract words and their antonyms from wordnet
    • see data-raw/generate-wordnet-antonyms.py
  2. Process the wordnet list into an R data structure
    • see data-raw/create-r-antonyms-data.R
  3. Included words_ant in the internal data for this package
  4. Added ant() and ants()

Unfortunately, there aren't really a lot of words in this antonym dataset i.e.

  • syn('good') has 667 results
  • ant('good') has 2 results

However, if we first find the list of synonyms of 'good', and then find all the antonyms of everything in there, there are 268 antonyms i.e.

sort(unique(flatten_chr(ants(syn('good')))))

This isn't perfect - somehow 'good' is in this list of antonyms for 'good'!

So for now, I've just included the wordnet antonyms as-is.

I've included the wordnet list as it is output by python (data-raw/wordnet-antonyms-cleaned.txt), as it's probably unreasonable to expect anyone to regenerate this.

@njtierney
njtierney merged commit f36680c into njtierney:master Nov 27, 2018
@njtierney

Copy link
Copy Markdown
Owner

This is AWESOME!

Thanks, Mike! (@coolbutuseless) - this is cool AND useful! :)

I'm really happy with this, we can improve upon this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants