## S3 method for class 'character':
stemCompletion(x, dictionary,
type = c("prevalent", "first", "longest",
"none", "random", "shortest"))
## S3 method for class 'PlainTextDocument':
stemCompletion(x, dictionary,
type = c("prevalent", "first", "longest",
"none", "random", "shortest"))
PlainTextDocument
or character
vector of stems to be completed.Corpus
or character
vector to be searched for possible completions.character
naming the heuristics to be used:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]data("crude")
stemCompletion(c("compan", "entit", "suppl"), crude)
(s <- stemDocument(crude[[1]]))
stemCompletion(s, crude)
Run the code above in your browser using DataLab