# Text classification example issue

**URL:** <https://discuss.huggingface.co/t/text-classification-example-issue/5689>\
**Category:** Beginners\
**Created:** [April 22, 2021, 3:13pm UTC](https://discuss.huggingface.co/t/text-classification-example-issue/5689 "2021-04-22T15:13:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash659](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@flash659](https://discuss.huggingface.co/u/flash659)\
**Post date:** [April 22, 2021, 3:13pm UTC](https://discuss.huggingface.co/t/text-classification-example-issue/5689/1 "2021-04-22T15:13:35Z")

</div>

![cardinality issue](https://us1.discourse-cdn.com/hellohellohello/original/2X/8/83f1de5339332eaefb504d0028ddf690b8506bb5.jpeg)

I am a beginner and did an example on text classification.

I did it on R studio with importing python modules but in the training process, an issue occurs with the above message.

Please help with this issue… I don’t know the reason why this issue related cardinality happens.
