get_lemmas {sehrnett}R Documentation

Search For Lemmas in WordNet

Description

Search for lemma(s) in WordNet.

Usage

get_lemmas(
  x = c("very", "nice"),
  pos = c("n", "v", "a", "s", "r"),
  sensenum,
  lemmatize = TRUE
)

Arguments

x

character, one or more lemmas to be searched; it can also be a data.frame result from another get_ functions, but it doesn't make a lot of sense. Alternatively, you can also use the so-called dot notation ("lemma.pos.sensenum") to quickly search for an exact word sense. For example, "king.n.10" is the lemma of "king", which is a noun with the 10th word sense, i.e. king, the chess piece. When using this dot notation, the lemmatize parameter is set to FALSE.

pos

character, a vector of part-of-speech labels: "n": Noun, "v": Verb, "a": Adjective, "s": Adjective satellite, "r": Adverb

sensenum

integer, if supplied, only those sensenum are selected.

lemmatize

logical, whether to lemmatize the x before making query. This is ignored if 1) pos has more than one element, 2) x contains collocations or hyphenation.

Value

a data frame containing search result

Examples


if (interactive()) {
get_lemmas("king.n.10")
}


[Package sehrnett version 0.1.0 Index]