1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Text Analysis in R

Connected

练习

Visualizing sentiment

Let's create a word_counts dataset and explore which words are associated with each sentiment in our Twitter data.

说明 1 / 共 2 个

undefined XP
    1
    2
  • Inner join tidy_twitter to the NRC dictionary and filter for positive, fear, and trust.
  • Count by word and sentiment and keep only the top 10 of each sentiment.
  • Create a factor called word2 that has each word ordered by the count.