Developing a Text Classifier
A text classifier is a machine learning model that is capable of labeling texts based on their content. For instance, a text classifier will help you understand whether a random text statement is sarcastic or not. Presently, text classifiers are gaining importance as manually classifying huge amounts of text data is impossible. In the next few sections, we will learn about the different parts of text classifiers and implement them in Python.
Feature Extraction
When dealing with text data, features denote its different attributes. Generally, they are numeric representations of the text. As we discussed in Chapter 2, Feature Extraction Methods, TFIDF representations of texts are one of the most popular ways of extracting features from them.
Feature Engineering
Feature engineering is the art of extracting new features from existing ones. Extracting novel features, which tend to capture variation in data better, requires sound domain expertise.
...