| stemCompletion {tm} | R Documentation |
Heuristically complete stemmed words.
## 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"))
x |
A |
dictionary |
A |
type |
A
|
A plain text document or character vector with completed words.
Ingo Feinerer
Ingo Feinerer (2010). Analysis and Algorithms for Stemming Inversion. Information Retrieval Technology — 6th Asia Information Retrieval Societies Conference, AIRS 2010, Taipei, Taiwan, December 1–3, 2010. Proceedings, volume 6458 of Lecture Notes in Computer Science, pages 290–299. Springer-Verlag, December 2010.
data("crude")
stemCompletion(c("compan", "entit", "suppl"), crude)
(s <- stemDocument(crude[[1]]))
stemCompletion(s, crude)