# Training emotions data with bert model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-emotions-data-with-bert-model%2F25925%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 11, 2022, 11:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-emotions-data-with-bert-model%2F25925 "2022-11-11T11:11:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sridharnlp](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@sridharnlp](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsridharnlp)%5C
**Post date:** [November 11, 2022, 11:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-emotions-data-with-bert-model%2F25925%2F1 "2022-11-11T11:11:22Z")

</div>

I am creating a emotions detection model on distilbert\_base\_uncased model, using my own dataset, that contains the data as format text, label where label=emotions, like happy, sad, angry

I tried different training method, but did not succeeded, can any one tell how to train the model.

Also I checked this notebook from @bhadresh-savani : [UnderstandingNLP/go\_emotion\_of\_transformers\_multilabel\_text\_classification\_v2.ipynb at master · bhadreshpsavani/UnderstandingNLP · GitHub](https://github.com/bhadreshpsavani/UnderstandingNLP/blob/master/go_emotion_of_transformers_multilabel_text_classification_v2.ipynb)

but the problem is that the data it has contains the labels in array format, eg: [0,0,0,1,0…]  
but my labels are direct: eg: happy, sad, angry  
so it is having conflicted and I can not able to train the model.

@bhadresh-savani if you have any idea and can give me what change I would do to make it work my data that will be really helpful!
