课程: Complete Guide to NLP with R

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Real-world sentiment analysis with quanteda sentiment

Real-world sentiment analysis with quanteda sentiment - R教程

课程: Complete Guide to NLP with R

Real-world sentiment analysis with quanteda sentiment

Sentiment analysis is a natural language processing tool used to identify the positivity or negativity of a particular document. It's a fairly subjective and a fairly complex process, and I'm going to walk you through the steps in order to set it up. And as we go along, you'll see how sentiment analysis actually works. The best way to demonstrate this is to give you an example of it actually finished. Then I'm going to show you how to set it up. And then I'm going to show you how you can modify the setup. In order to do that, I need to start halfway through the code and you'll see that I'm starting at line 35. This is the example code that's included with this course. In line 35, I'm using the textstat underbar polarity command that's part of quanteda. For that command, I have identified the corpus as scTokens and something called a dictionary as dd underbar geninq. Let's run line 35 and see the result. I'll open up the…

内容