8. Sentiment Analysis

“Frankly, my dear, I don’t give a damn.”

—CLARK GABLE AS RHETT BUTLER IN Gone with the Wind (1940)

As all must know by now, I am not shy about sharing my opinions. So to start on the topic for this chapter, I have written a few movie reviews. Along with the reviews, shown in figures 8.1 and 8.2, I give each of the movies a rating from 1 to 10, with 1 being “horrible” and 10 being “fantastic.” Such is sentiment.

Image

Figure 8.1. A Few Movie Reviews According to Tom

Sentiment analysis is text analytics with a purpose. It is the use of text measures to learn about the past and make predictions about the future. Sometimes called ...

Get Modeling Techniques in Predictive Analytics with Python and R: A Guide to Data Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.