# Dataset Object without ClassLabel

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-object-without-classlabel%2F33029%3E%5C
**Category:** 🤗Datasets\
**Created:** [March 4, 2023, 4:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-object-without-classlabel%2F33029 "2023-03-04T16:24:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CamielPXNX](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@CamielPXNX](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FCamielPXNX)%5C
**Post date:** [March 7, 2023, 10:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-object-without-classlabel%2F33029%2F2 "2023-03-07T10:16:28Z")

</div>

I have the same issue. Maybe I’m looking in the wrong places, but I can’t find much in the guide about casting a feature to `ClassLabel` when making your own dataset… In my case, I have string IOB labels labels to transform to ints.

EDIT: this clued me in to the solution: [How to create custom ClassLabels?](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-custom-classlabels%2F13650)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-object-without-classlabel%2F33029)._
