Sentiment की गिनती
tidy_twitter डेटासेट आपके लिए लोड कर दिया गया है. आइए देखें कि हमारे Twitter डेटा में कौन से sentiments सबसे ज़्यादा दिखते हैं.
यह अभ्यास पाठ्यक्रम का हिस्सा है
R में Text Analysis परिचय
अभ्यास निर्देश
tidy_twitterऔर NRC sentiment डिक्शनरी को जॉइन करें.sentiment_twitterमें sentiments की गिनती करें.- sentiment counts को descending क्रम में arrange करें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Join tidy_twitter and the NRC sentiment dictionary
sentiment_twitter <- ___ %>%
___(___("nrc"))
# Count the sentiments in sentiment_twitter
___ %>%
___(___) %>%
# Arrange the sentiment counts in descending order
___(___)