# Dataset Object without ClassLabel

**URL:** <https://discuss.huggingface.co/t/dataset-object-without-classlabel/33029>\
**Category:** 🤗Datasets\
**Created:** [March 4, 2023, 4:24pm UTC](https://discuss.huggingface.co/t/dataset-object-without-classlabel/33029 "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](https://discuss.huggingface.co/u/CamielPXNX)\
**Post date:** [March 7, 2023, 10:16am UTC](https://discuss.huggingface.co/t/dataset-object-without-classlabel/33029/2 "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?](https://discuss.huggingface.co/t/how-to-create-custom-classlabels/13650)

---

_[View the full topic](https://discuss.huggingface.co/t/dataset-object-without-classlabel/33029)._
