Visualizing sentiment
Vamos a crear un conjunto de datos word_counts y explorar qué palabras se asocian con cada sentimiento en nuestros datos de Twitter.
Este ejercicio forma parte del curso
Introducción al análisis de texto en R
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
word_counts <- tidy_twitter %>%
# Append the NRC dictionary and filter for positive, fear, and trust
___(___) %>%
___(___) %>%
# Count by word and sentiment and keep the top 10 of each
___(___) %>%
group_by(___) %>%
___(___) %>%
ungroup() %>%
# Create a factor called word2 that has each word ordered by the count
mutate(___)