Adding custom stopwords in R tm

前端 未结 5 1427
梦谈多话
梦谈多话 2020-12-31 07:15

I have a Corpus in R using the tm package. I am applying the removeWords function to remove stopwords

tm_map(abs, removeWords, stop         


        
5条回答
  •  隐瞒了意图╮
    2020-12-31 07:27

    You could also use the textProcessor package. It works quite well:

    textProcessor(documents, 
      removestopwords = TRUE, customstopwords = NULL)
    

提交回复
热议问题