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

Unlock the full course today

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

Challenge: Sentiment scoring

Challenge: Sentiment scoring

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

Start my 1-month free trial

Challenge: Sentiment scoring

(upbeat music) - [Instructor] For our final challenge, I want to invite you to try graphing the narrative arc of a book using sentiment scoring. And to do this, I'm going to give you a different book to use. Instead of "The Iliad," we'll use "Little Women" by Louisa May Alcott, also from Project Gutenberg. You can download it from this site, but I've already downloaded it and prepared the data a little bit and saved it in our data folder as littlewomen.text. So let me invite you to open up these packages and then come and import the data. And then let's take a look at the first few lines. This is just the title page. And so we have the Gutenberg ID, which indicates the book ID. And we see it's "Little Women" by Louisa May Alcott. But what I want you to do is take the entire text of the book, break it into sections, get the sentiment scoring, that goes from negative five to positive five, and get a visualization of…

Contents