# How to do multilingual bert classification

**URL:** <https://discuss.huggingface.co/t/how-to-do-multilingual-bert-classification/23871>\
**Category:** Beginners\
**Created:** [October 1, 2022, 4:57pm UTC](https://discuss.huggingface.co/t/how-to-do-multilingual-bert-classification/23871 "2022-10-01T16:57:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talha](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@Talha](https://discuss.huggingface.co/u/Talha)\
**Post date:** [October 1, 2022, 4:57pm UTC](https://discuss.huggingface.co/t/how-to-do-multilingual-bert-classification/23871/1 "2022-10-01T16:57:04Z")

</div>

I am trying to understand how to do training of multilingual data.  
Do we need to create a dataset having text in different languages and their labels? Or there is some sort of settings/flags in bert to let bert know this is multilingual? I mean do we need to provide language code, or bert automatically understand the language name
