5

Sentiment Lexicons and Vector-Space Models

We now have the machinery that we need to make systems that find emotions in texts – natural language processing (NLP) algorithms for converting raw texts into feature sets and machine learning algorithms for extracting patterns from feature sets. Over the next few chapters, we will develop a series of emotion mining algorithms, very simple ones to start with, leading up to sophisticated algorithms that use a variety of advanced techniques.

While doing so, we will use a collection of datasets and a variety of measures to test each algorithm and compare the effectiveness of the various preprocessing steps. So, this chapter will start by considering the datasets and metrics that we will be using as ...

Get Machine Learning for Emotion Analysis in Python 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.