# Load\_dataset split='test' not working

**URL:** <https://discuss.huggingface.co/t/load-dataset-split-test-not-working/72281>\
**Category:** 🤗Datasets\
**Created:** [February 7, 2024, 3:10pm UTC](https://discuss.huggingface.co/t/load-dataset-split-test-not-working/72281 "2024-02-07T15:10:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpric024](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@gpric024](https://discuss.huggingface.co/u/gpric024)\
**Post date:** [February 7, 2024, 3:10pm UTC](https://discuss.huggingface.co/t/load-dataset-split-test-not-working/72281/1 "2024-02-07T15:10:22Z")

</div>

This line of code here has been working for months for me… However. today I ran the code and its generating the train split. The ‘split’ argument is being ignored.

```python
dataset_wmt_enfr = load_dataset("wmt14",'fr-en', split='test')

```

Has anyone else run into this issue? I saw there was a change to the repository a couple of days ago…

Thanks

---

<div class="post-metadata">

**Author:** ![albertvillanova](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/albertvillanova/32/26537_2.png) [@albertvillanova](https://discuss.huggingface.co/u/albertvillanova)\
**Post date:** [February 8, 2024, 9:16am UTC](https://discuss.huggingface.co/t/load-dataset-split-test-not-working/72281/2 "2024-02-08T09:16:37Z")

</div>

Hi @gpric024,

I cannot reproduce the issue.

I did the latest changes to the dataset, but these were just:

- Removing the legacy JSON file: [Delete legacy JSON metadata (#4) · wmt14 at 473719a](https://huggingface.co/datasets/wmt14/commit/473719a936ce8e0b34b76f80c5d8c20038f33e23)
- Updating one of the source data URL (OPUS changed their server and previous URL was giving 404 error): [Fix OPUS download URL (#5) · wmt14 at 0aab7df](https://huggingface.co/datasets/wmt14/commit/0aab7df57cccf61727850eace240c3655477e78c)
- Updating the documentation in the README.md file:
  - [Update warning disclosure with organizers' response (#6) · wmt14 at 2fbd0b7](https://huggingface.co/datasets/wmt14/commit/2fbd0b749dc198d4ff0281274c8ecd50b3fa7077)
  - [Minor fix in dataset card (#7) · wmt14 at 76f6eba](https://huggingface.co/datasets/wmt14/commit/76f6eba7d6b488ed8fe1f7ab80a87636898b2891)

I guess until now you were using the dataset that you had in your local cache, and now that the dataset has been updated on the Hub, the library tries to regenerate it and caching it again without success. So I think this could happen if you have a very old version of `datasets`. Could you please verify?

```python
import datasets
datasets. __version__

```

If this is the case, I recommend you to update it:

```shell
pip install -U datasets

```

If after all, the problem persists on your side, I would ask you to include the complete stack trace error and information about your environment (by running the shell command `datasets-cli env`).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [April 18, 2024, 6:20pm UTC](https://discuss.huggingface.co/t/load-dataset-split-test-not-working/72281/3 "2024-04-18T18:20:20Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
