Introspektion med sentimentanalys

Sentimentanalys i R

Ted Kwartler

Data Dude

qdap:s polaritet för att dela upp korpusar

library(qdap)
polarity(text.var, grouping.var = NULL)

jämförelsemolnet polaritetetsarbetsflöde

Sentimentanalys i R

Jämföra vanliga ord i Plutchiks ramverk

emotionshjul

val

Sentimentanalys i R

Var är Waldo? Var är han inte?

x <- c("Nicole", "Nick", "Waldo")
grep("Waldo", x)
[1] 3
grepl("Waldo", x)
[1] FALSE FALSE  TRUE
!grepl("Waldo", x)
[1] TRUE  TRUE FALSE
Sentimentanalys i R

Lägga till en "eller"-operator

x <- c("Nicole", "Nick", "Waldo")
grepl("Waldo|Nicole", x)
[1] TRUE FALSE  TRUE
!grepl("Waldo|Nicole", x)
[1] FALSE  TRUE FALSE
Sentimentanalys i R

Staplade jämförelser för polaritetsblandning

stapeldiagram

Sentimentanalys i R

Nu kör vi en övning!

Sentimentanalys i R

Preparing Video For Download...