getWord: Get Synset Word

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/synsets.R

Description

Get the words in a synset.

Usage

1
getWord(synset)

Arguments

synset

The synset whose words are returned.

Value

A character vector holding the words.

Author(s)

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. http://mfwallace.googlepages.com/jawbone

See Also

getSynsets

Examples

1
2
3
4
5
6
7
if(initDict()) {
  filter <- getTermFilter("ExactMatchFilter", "hot", TRUE)
  terms <- getIndexTerms("ADJECTIVE", 5, filter)
  synsets <- getSynsets(terms[[1]])
  related <- getRelatedSynsets(synsets[[1]], "!")
  sapply(related, getWord)
}

wordnet documentation built on Nov. 26, 2017, 5:06 p.m.