# Load\_dataset did not load the text file?

**URL:** <https://discuss.huggingface.co/t/load-dataset-did-not-load-the-text-file/6618>\
**Category:** Beginners\
**Created:** [June 7, 2021, 8:42am UTC](https://discuss.huggingface.co/t/load-dataset-did-not-load-the-text-file/6618 "2021-06-07T08:42:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fortuna](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fortuna](https://discuss.huggingface.co/u/fortuna)\
**Post date:** [June 7, 2021, 8:42am UTC](https://discuss.huggingface.co/t/load-dataset-did-not-load-the-text-file/6618/1 "2021-06-07T08:42:29Z")

</div>

```auto
from datasets import load_dataset

dataset = load_dataset('text',data_files='/content/chatbot.txt')

```

why is the inside of my dataset is like this and when I use dataset[0] like the docs it give me `key error '0'` instead?

```auto
DatasetDict({
    train: Dataset({
        features: ['text'],
        num_rows: 72842
    })
})

```

Please help thanks
