June 2024
Intermediate to advanced
462 pages
10h 56m
English
In this chapter, we will learn how to configure a pre-trained model for text classification and how to fine-tune it for any text classification downstream task, such as sentiment analysis, multi-class classification, or multi-label classification. We will also discuss how to handle sentence-pair and regression problems by covering an implementation example. We will work with well-known datasets such as GLUE, as well as our own custom datasets. We will then take advantage of the Trainer class, which deals with the complexity of processes for training and fine-tuning.
First, we will learn how to fine-tune single-sentence binary sentiment classification with the Trainer class. Then, we will ...
Read now
Unlock full access