# Dataset labels with more than one identifier

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-labels-with-more-than-one-identifier%2F137218%3E%5C
**Category:** Beginners\
**Created:** [January 24, 2025, 8:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-labels-with-more-than-one-identifier%2F137218 "2025-01-24T20:14:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [January 25, 2025, 6:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-labels-with-more-than-one-identifier%2F137218%2F3 "2025-01-25T06:54:03Z")

</div>

Basically, I don’t think anything you upload will be lost, but it’s better to have it in a correct or easy-to-use data set format…🤔  
There is a way to output Python dict in JSON and upload it separately, but it’s not smart.  
Is there a better way? @lhoestq

> [@How to build a multi-label & multi-class dataset correctly?](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-build-a-multi-label-multi-class-dataset-correctly%2F76042)%3A
>
> I am unsure how to proceed creating a [Dataset](https://huggingface.co/docs/datasets/en/package_reference/main_classes#datasets.Dataset) with multiple labels and classes where the classes are not the same for the different labels. A multi-label example is shared [here](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcould-someone-please-explain-how-to-make-a-multi-label-dataset-from-csv%2F18534%2F2)%2C but the classes are always either 0 or 1. My task is slightly different. To illustrate what I mean, take this dataset: text (X) region (y₁) weather (y₂) sentiment (y₃) ‘The Taj Mahal was beautiful, even in monsoon season’ ‘asia’ ‘rain’ ‘positive’ ‘Surprisingly warm in London with blue skies…’ ‘europe’ ‘sun’ ‘…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-labels-with-more-than-one-identifier%2F137218)._
