powered by
Downloads the WordNet thesaurus and converts it into a format to be used by addWordnet to add extra synonyms to a concept database.
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") )
data.table containing WordNet data from appropriate categories, in the format: cat (character), wordnetId (integer64), synonyms (list), parents (list), adj (list)
URL or filepath to WordNet tar.gz file
WordNet categories from which to extract data
https://wordnet.princeton.edu/
addWordnet
Other CDB functions: addComposeLookupToCDB(), addWordnet(), batchDecompose(), createCDB(), downloadOrphanet()
addComposeLookupToCDB()
addWordnet()
batchDecompose()
createCDB()
downloadOrphanet()
# Not run # WORDNET <- downloadWordnet()
Run the code above in your browser using DataLab