BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

Introduction to Natural Language Processing in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print the lexicon
get_sentiments(___)

# Count the different sentiment types
get_sentiments(___) %>%
  count(___) %>%
  arrange(desc(n))
Kodu Düzenle ve Çalıştır