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

How to use customized stopwords in R?

$
0
0

@juhwan_lim wrote:

Hello.

I am trying to use customized stopwords in R.

but the words Iam trying to remove still exist.

my code is below.

delete.2 <- read.csv('tdm.2.delete.csv',stringsAsFactors=F)

road csv file containing the words I want to remove

delete.2.1 <- delete.2[[1]]

make data.frame to character Vector

'delete.2.1 is my customized stopwords

cps.2.1 <- tm_map(cps.2, removeWords, delete.2.1)

tdm.2.1 <- TermDocumentMatrix(cps.2.1, control=list(
wordLengths=c(3, 20),
weighting=weightTf))

plz let me know if there is wrong

thx

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles