This is going to be a fun chapter. In this chapter, we will explore and demonstrate some practical examples of using Natural Language Processing (NLP) concepts to understand how unstructured text can be turned into insights. In Chapter 10, Exploring Text Data and Unstructured Data, we explored the Natural Language Toolkit (NLTK) library and some fundamental features of working with identifying words, phrases, and sentences. In that process of tokenizing, we learned how to work with data and classify text, but did not go beyond that. In this chapter, we will learn about sentiment analysis, which predicts the underlying tone of text that's input into an algorithm. We will break down the elements that make up an NLP model and the packages used for sentiment analysis before walking through an example together.
In this chapter, we will cover the following topics:
- Why sentiment...