来聊聊我们的情感

R 中的情感分析

Ted Kwartler

Data Dude

定义:情感分析

"情感分析"是"从文本中提取作者情绪意图"的过程

正负号

表情符号

R 中的情感分析

情感分析为何重要?

好奇心

商业

R 中的情感分析

本课程中的数据格式

词袋 DTM 与 TDM 词袋

说唱 TDM

整洁 tribble……呃……tibble tribble

说唱 tibble

R 中的情感分析

第 1 章:qdap 的 polarity() 函数

library(qdap)

polarity(text$column)

polarity(text$column, text$factor_or_author_grouping)

极性

R 中的情感分析

第 2 章:tidytext 的内连接

library(tidytext)

inner_join(sentiment_words, some_text_to_be_analyzed)

内连接维恩图

R 中的情感分析

第 3 章:情感可视化

htmlwidgets.org 雷达图

情感雷达图

ggplot2 折线图

按时间顺序的折线图

R 中的情感分析

第 4 章:房屋租赁案例研究

波士顿地图

R 中的情感分析

¡Vamos a practicar!

R 中的情感分析

Preparing Video For Download...