I am stemming my text data in R. I am using a solution proposed by Yanchang Zhao for the latest version of tm package but found this very slow. I am looking for an alternative way.myCorpusCopy <- myCorpusstemCompletion2 <- function(x, dictionary) {x <- unlist(strsplit(as.character(x),  ))x <- x[x != ]x <- stemCompletion(x, dictionary=dictionary)x <- paste(x, sep=, collapse= ) PlainTextDocument(stripWhitespace(x)) } myCorpus <- lapply(myCorpus, stemCompletion2, dictionary=myCorpusCopy) myCorpus <- Corpus(VectorSource(myCorpus))
Stemming text in R
r;text mining