In what follows, I’ll show how to fine-tune a BERT classifier, using Huggingface and Keras+Tensorflow, for dealing with two different text classification problems. The first consists in detecting the sentiment (negative or positive) of a movie review, while the second is related to the classification of a comment based on different types of toxicity, such as toxic, severe toxic, obscene, threat, insult and identity hate.
Last updated on
Mar 23, 2024
7 min read