I am trying to remove some frequently occurring words in my corpus using stm's built-in textProcessor. My code ran without any errors, but the words I specified were not removed. Does anyone know if I need to do something different with the list of words in my code? Neither the stm description or the vignette have any example code to show how to specify the words on the custom stop words list. Thanks!
I am trying to remove some frequently occurring words in my corpus using stm's built-in textProcessor. My code ran without any errors, but the words I specified were not removed. Does anyone know if I need to do something different with the list of words in my code? Neither the stm description or the vignette have any example code to show how to specify the words on the custom stop words list. Thanks!
processed <- textProcessor(data$Text, metadata = data, lowercase = TRUE, removestopwords = TRUE, removenumbers = TRUE, removepunctuation = TRUE, stem = FALSE, wordLengths = c(3, Inf), sparselevel = 1, language = "en", verbose = TRUE, onlycharacter = FALSE, striphtml = TRUE, customstopwords = "climate, change, national, assessment, report, said", v1 = FALSE)