Chapter 8: Topic Classification Using AutoKeras
Sometimes, we need to categorize some specific text, such as a product or movie review, into one or more categories by assigning tags or topics. Topic classification is a supervised machine learning technique that does exactly this job: predicting which categories a given text belongs to. Being a supervised model, it needs to be trained with a set of already categorized train data, along with the texts and the categories that each one belongs to.
This chapter will be mainly practical since we laid the foundations for text-based tasks in previous chapters. By the end of this chapter, you will have learned how to create a topic classifier with AutoKeras, as well as how to apply it to any topic or category-based dataset.
The main topics that will be covered in this chapter are as follows:
- Understanding topic classification
- Creating a topic classifier with AutoKeras
- Customizing the model search space
First...