Session Ready
Exercise

tidytext lexicons

Before you begin applying sentiment analysis to text, it is essential that you understand the lexicons being used to aid in your analysis. Each lexicon has advantages when used in the right context. Before running any analysis, you must decide which type of sentiment you are hoping to extract from the text available.

In this exercise, you will explore the three different lexicons offered by tidytext's sentiments' datasets.

Instructions 1/3
undefined XP
  • 1
    • Print the bing lexicon and count the different values of the sentiment column.
    • 2
      • Print the nrc lexicon and count the different values of the sentiment column.
    • 3
      • Print the afinn lexicon and count the different values of the score column.