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
From the course: Data Science Foundations: Data Mining in R
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Text mining overview4m 34s
-
(Locked)
Dataset: The Iliad2m 39s
-
(Locked)
Sentiment analysis: Binary classification6m 24s
-
(Locked)
Sentiment analysis: Sentiment scoring7m 24s
-
(Locked)
Visualizing Word pairs6m 36s
-
(Locked)
Challenge: Sentiment scoring1m 10s
-
(Locked)
Solution: Sentiment scoring4m 13s
-
(Locked)
-