# BERT for Dataset with two label columns

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-for-dataset-with-two-label-columns%2F69990%3E%5C
**Category:** Beginners\
**Created:** [January 21, 2024, 5:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-for-dataset-with-two-label-columns%2F69990 "2024-01-21T17:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baniasbaabe](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@baniasbaabe](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbaniasbaabe)%5C
**Post date:** [January 21, 2024, 5:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-for-dataset-with-two-label-columns%2F69990%2F1 "2024-01-21T17:49:55Z")

</div>

Are there any tutorials/notebooks which shows how you can use BERT for multilabel classification? I have a dataset with one input column (a sentence) and two label columns (grade, education). I was searching for a multilabel tutorial, but they were mostly about situations where the sentence have an arbitrary number of labels. In this case, you can only have two. 🙂

---

<div class="post-metadata">

**Author:** ![MattiLinnanvuori](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@MattiLinnanvuori](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMattiLinnanvuori)%5C
**Post date:** [January 22, 2024, 6:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbert-for-dataset-with-two-label-columns%2F69990%2F2 "2024-01-22T18:00:07Z")

</div>

See the following link. [[Transformers-Tutorials/BERT/Fine\_tuning\_BERT\_(and\_friends)\_for\_multi\_label\_text\_classification.ipynb at master · NielsRogge/Transformers-Tutorials · GitHub](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/BERT/Fine_tuning_BERT_(and_friends)_for_multi_label_text_classification.ipynb)]
