BERT for multi-class text classification

Hi all,

Is it possible to use BERT from transformers library for multi-class text classification problem? Is there any tutorial.

Thanks

1 Like

The huggingface transformers library has a class for it and they also show a GLUE example:

https://huggingface.co/transformers/model_doc/bert.html#transformers.BertForSequenceClassification

and the examples/run_glue.py from their github repository.

Best regards

Thomas4

2 Likes