# Load\_dataset did not load the text file?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-dataset-did-not-load-the-text-file%2F6618%3E%5C
**Category:** Beginners\
**Created:** [June 7, 2021, 8:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-dataset-did-not-load-the-text-file%2F6618 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffortuna)%5C
**Post date:** [June 7, 2021, 8:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-dataset-did-not-load-the-text-file%2F6618%2F1 "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
