Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to provide a custom stop-word list in R?

$
0
0

@SD1 wrote:

Hi,
I am currently working on a email-classification problem based on keywords in the contents of the mail. I am new to R and need some help. I have a very long list of stop-words in a text file that I would like to be used as stop-words in addition to the inbuilt one in R.

Say the file that has additional keywords is stop.txt. Now, how do I modify the code below to accommodate this?

corpus <- tm_map(corpus, removeWords, c(stopwords('english')))

Can anyone help me with the revised code?

Regards,
Sharath

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles