-
Book Overview & Buying
-
Table Of Contents
Machine Learning for Emotion Analysis in Python
By :
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 we develop the various algorithms. Once we have the datasets and metrics in place, we will consider very simple classifiers based purely on sentiment lexicons, and we will look at ways of calculating how strongly an individual word expresses...