我确实设置了停止词,并认为这应该有效,而发生的事情是:
library(tm)
myStopwords <- c(stopwords('english'), "rt", "and")
myCorpus <- tm_map(myCorpus, removeWords, myStopwords)
Error in UseMethod("tm_map", x) :
no applicable method for 'tm_map' applied to an object of class "character"
有人对此有任何想法吗? 谢谢!