Learn R Programming

wordnet (version 0.1-16)

getRelatedSynsets: Get Related Synsets for a Synset

Description

Get related synsets for a given synset based on a pointer symbol.

Usage

getRelatedSynsets(synset, pointerSymbol)

Value

A list of synsets.

Arguments

synset

Basic synset.

pointerSymbol

A symbol indicating the type of the related synsets. An overview is available at https://wordnet.princeton.edu/documentation/wnsearch3wn.

Author

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. https://sites.google.com/site/mfwallace/jawbone

See Also

getSynsets

Examples

Run this code
if(initDict()) {
  filter <- getTermFilter("ExactMatchFilter", "hot", TRUE)
  terms <- getIndexTerms("ADJECTIVE", 5, filter)
  synsets <- getSynsets(terms[[1]])
  related <- getRelatedSynsets(synsets[[1]], "!")
  sapply(related, getWord)
}

Run the code above in your browser using DataLab