powered by
## 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
character
Corpus
data("crude") stemCompletion(c("compan", "entit", "suppl"), crude) (s <- stemDocument(crude[[1]])) stemCompletion(s, crude)
Run the code above in your browser using DataLab