Let's talk about our feelings

Sentiment Analysis in R

Ted Kwartler

Data Dude

Definition: sentiment analysis

Sentiment analysis is the process of extracting an author’s emotional intent from text

plus-minus

emoji

Sentiment Analysis in R

Why is sentiment analysis important?

curiousity

business

Sentiment Analysis in R

Data formats in this course

Bag of Words DTM & TDM bag-of-words

rap TDM

Tidy Tribble...errr...Tibble tribble

rap tibble

Sentiment Analysis in R

Chapter 1: qdap's polarity() function

library(qdap)

polarity(text$column)

polarity(text$column, text$factor_or_author_grouping)

polarity

Sentiment Analysis in R

Chapter 2: tidytext inner joins

library(tidytext)

inner_join(sentiment_words, some_text_to_be_analyzed)

inner join venn diagram

Sentiment Analysis in R

Chapter 3: Visualizing sentiment

htmlwidgets.org radar chart

radar chart of emotion

ggplot2 line chart

chronological line chart

Sentiment Analysis in R

Chapter 4: Case study on property rentals

Boston map

Sentiment Analysis in R

Let's practice!

Sentiment Analysis in R

Preparing Video For Download...