From the course: Data Science Foundations: Data Mining in R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Sentiment analysis: Sentiment scoring

Sentiment analysis: Sentiment scoring

From the course: Data Science Foundations: Data Mining in R

Start my 1-month free trial

Sentiment analysis: Sentiment scoring

- [Tutor] In the last video I showed you how to do binary classification of sentiment, either positive or negative, in this demonstration, we're going to get a little more sophisticated and actually score, not just whether it's positive or negative, but how positive or how negative. We're going to use the same text, the Iliad and we'll use the same packages, but a different lexicon. And it allows us to do different things. Let's come down here and load our packages which include gutenbergr and tidy texts. Now we're also loading text data which allows a little bit of extra functionality. We'll bring in the iliad.txt which I've already saved for us. And we'll put it into a table and we'll look at the first few rows. This is the data we've seen before. We have the gutenbergr ID. That is the ID for the Iliad. And here is the first few lines on the title page. We need to we do a little bit of data…

Contents