Vizualizace sentimentu podle typu stížnosti
Teď vytvoříme datový rámec sentiment_twitter a zjistíme, jestli jsou stížnosti skutečně v průměru negativnější.
Toto cvičení je součástí kurzu
Úvod do analýzy textu v R
Interaktivní cvičení na vyzkoušení si v praxi
Vyzkoušejte si toto cvičení dokončením tohoto ukázkového kódu.
sentiment_twitter <- tidy_twitter %>%
# Append the bing sentiment dictionary
___(___) %>%
# Count by complaint label and sentiment
___(___) %>%
# Spread the sentiment and count columns
___(___) %>%
# Compute overall_sentiment = positive - negative
___(___)