來聊聊情緒吧

R 情感分析

Ted Kwartler

Data Dude

定義:情感分析

情感分析從文字中擷取作者情緒意圖的過程

正負號

表情符號

R 情感分析

為何情感分析重要?

好奇心

商業應用

R 情感分析

本課使用的資料格式

Bag of Words DTM 與 TDM 詞袋模型

饒舌歌詞 TDM

Tidy Tribble……呃……Tibble tribble

饒舌歌詞 tibble

R 情感分析

第 1 章:qdap 的 `polarity()` 函式

library(qdap)

polarity(text$column)

polarity(text$column, text$factor_or_author_grouping)

極性

R 情感分析

第 2 章:tidytext 的 inner join

library(tidytext)

inner_join(sentiment_words, some_text_to_be_analyzed)

內聯結維恩圖

R 情感分析

第 3 章:視覺化情感

htmlwidgets.org 雷達圖

情緒雷達圖

ggplot2 折線圖

時間序列折線圖

R 情感分析

第 4 章:房屋租賃個案研究

波士頓地圖

R 情感分析

一起來練習吧!

R 情感分析

Preparing Video For Download...