Chapter 4. Text Classification
This chapter builds on a brief introduction to text classification and provides you with an example of the Naïve Bayes algorithm, developed from scratch in order to explain how to turn an equation into code.
In this chapter, we will cover:
- Learning and classification
- Bayesian classification
- Naïve Bayes algorithm
- E-mail subject line tester
- The data
- The algorithm
- Classifier accuracy