Displaying 1 result from an estimated 1 matches for "stopwordlist".
2011 Oct 04
1
Reading stopwords from a csv file
I am using the tm package to do text miniing:
I have a huge list of stopwords (2000+) that are in a csv file. I read it as
follows:
stopwordlist <- read.csv("stopwords to be Removed 10042011.csv")
myStopwords <- as.character(stopwordlist$stopwords)
When try removing the stopwords using
tr1=tm_map(tr1,removeWords,myStopwords)
I am getting the following error:
Error in gsub(sprintf("\\b(%s)\\b", paste(words, col...