# Load\_datasets not working

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-datasets-not-working%2F73893%3E%5C
**Category:** 🤗Datasets\
**Created:** [February 20, 2024, 2:18am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-datasets-not-working%2F73893 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnaman36)%5C
**Post date:** [February 20, 2024, 2:18am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-datasets-not-working%2F73893%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsevero)%5C
**Post date:** [February 20, 2024, 8:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-datasets-not-working%2F73893%2F2 "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”.
