# Finetuning T5 for multi class classification

**URL:** <https://discuss.huggingface.co/t/finetuning-t5-for-multi-class-classification/13438>\
**Category:** Intermediate\
**Created:** [January 6, 2022, 12:45pm UTC](https://discuss.huggingface.co/t/finetuning-t5-for-multi-class-classification/13438 "2022-01-06T12:45:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitkayal](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@amitkayal](https://discuss.huggingface.co/u/amitkayal)\
**Post date:** [January 6, 2022, 12:45pm UTC](https://discuss.huggingface.co/t/finetuning-t5-for-multi-class-classification/13438/1 "2022-01-06T12:45:24Z")

</div>

Hello,

I wanted to train T5 model for my multi class sentiment analysis and it has 4 classes. Do I need to add 'multilabel classification: before my text? I was looking for an example but could not locate that.

Can you please help me on this?

Thanks  
Amit
