Learn R Programming

Rdiagnosislist (version 1.4.0)

downloadWordnet: Download WordNet to assist concept database creation

Description

Downloads the WordNet thesaurus and converts it into a format to be used by addWordnet to add extra synonyms to a concept database.

Usage

downloadWordnet(
  wordnet_url = "https://wordnetcode.princeton.edu/wn3.1.dict.tar.gz",
  wn_categories = c("noun.body", "noun.state", "noun.process", "noun.animal",
    "noun.plant", "noun.phenomenon")
)

Value

data.table containing WordNet data from appropriate categories, in the format: cat (character), wordnetId (integer64), synonyms (list), parents (list), adj (list)

Arguments

wordnet_url

URL or filepath to WordNet tar.gz file

wn_categories

WordNet categories from which to extract data

References

https://wordnet.princeton.edu/

See Also

addWordnet

Other CDB functions: addComposeLookupToCDB(), addWordnet(), batchDecompose(), createCDB(), downloadOrphanet()

Examples

Run this code
# Not run
# WORDNET <- downloadWordnet()

Run the code above in your browser using DataLab