stemCompletion {tm} | R Documentation |
Heuristically complete stemmed words.
stemCompletion(object, words, type = c("prevalent", "first"))
object |
a Corpus to be searched for possible completions. |
words |
a character vector of stems to be completed. |
type |
a character naming the heuristics to be
used. prevalent is default and takes the most frequent match as
completion, whereas first takes the first found completion. |
A character vector with completed words
.
Ingo Feinerer
data("crude") stemCompletion(crude, c("compan", "entit", "suppl"))