# AutoTrain Token Classification Error

**URL:** <https://discuss.huggingface.co/t/autotrain-token-classification-error/77025>\
**Category:** 🤗AutoTrain\
**Created:** [March 12, 2024, 6:57am UTC](https://discuss.huggingface.co/t/autotrain-token-classification-error/77025 "2024-03-12T06:57:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![damand2061](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@damand2061](https://discuss.huggingface.co/u/damand2061)\
**Post date:** [March 12, 2024, 6:57am UTC](https://discuss.huggingface.co/t/autotrain-token-classification-error/77025/1 "2024-03-12T06:57:46Z")

</div>

My sample data .csv:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/1/8/185bcf1b48bab2bff3aa61c3882a4617e62899eb.png)

Column mapping in AutoTrain:  
{“text”: “tokens”, “label”: “tags”}

```auto
❌ ERROR | 2024-03-12 06:53:38 | autotrain.trainers.common:wrapper:91 - train has failed due to an exception: Traceback (most recent call last):
  File "/app/env/lib/python3.10/site-packages/autotrain/trainers/common.py", line 88, in wrapper
    return func(*args, **kwargs)
  File "/app/env/lib/python3.10/site-packages/autotrain/trainers/token_classification/ __main__.py", line 68, in train
    label_list = train_data.features[config.tags_column].feature.names
KeyError: 'tags'

❌ ERROR | 2024-03-12 06:53:38 | autotrain.trainers.common:wrapper:92 - 'tags'

```
