Text Mining and Sentiment Assignment
Text Mining and Sentiment Assignment
SUBMITTED BY –
library("tm")
library("wordcloud")
library("tidytext")
library("dplyr")
library("sentimentr")
library("SnowballC")
library("syuzhet")
data<-read.csv(file.choose(),header= TRUE)
summary(data)
length(data)
colnames(data)
head(data)
sum(is.na(data))
head(dtm_d, 5)
set.seed(1234)
wordcloud(words = dtm_d$word, freq = dtm_d$freq, min.freq = 5,
max.words=100, random.order=FALSE, rot.per=0.40,
colors=brewer.pal(8, "Dark2"))