# Load\_datasets not working

**URL:** <https://discuss.huggingface.co/t/load-datasets-not-working/73893>\
**Category:** 🤗Datasets\
**Created:** [February 20, 2024, 2:18am UTC](https://discuss.huggingface.co/t/load-datasets-not-working/73893 "2024-02-20T02:18:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naman36](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@naman36](https://discuss.huggingface.co/u/naman36)\
**Post date:** [February 20, 2024, 2:18am UTC](https://discuss.huggingface.co/t/load-datasets-not-working/73893/1 "2024-02-20T02:18:35Z")

</div>

I am trying to run this code in my VS code

```auto
  from datasets import load_dataset
  
  imdb = load_dataset("imdb")
  split = imdb["train"].train_test_split(.2, seed=3463)
  imdb["train"] = split["train"]
  imdb["val"] = split["test"]
  del imdb["unsupervised"]

```

But I am getting the below error

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/1/5/1584b60d40efdc72cdc12b7292fc771fb6fbcbcf.jpeg)

Python version 3.11.0, datasets version 2.17.1  
Can anyone help with this?

---

<div class="post-metadata">

**Author:** ![severo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/severo/32/27449_2.png) [@severo](https://discuss.huggingface.co/u/severo)\
**Post date:** [February 20, 2024, 8:53am UTC](https://discuss.huggingface.co/t/load-datasets-not-working/73893/2 "2024-02-20T08:53:40Z")

</div>

I think you have to start with

```auto
  imdb = load_dataset("imdb", "plain_text")

```

as the configuration is named “plain\_text”.
