Datasets:
wmt
/

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:

example code incorrect

#10
by cosmosaa - opened

The example code is incorrect and refers to an outdated commit

from datasets import inspect_dataset, load_dataset_builder

inspect_dataset("wmt14", "path/to/scripts")
builder = load_dataset_builder(
    "path/to/scripts/wmt_utils.py",
    language_pair=("fr", "de"),
    subsets={
        datasets.Split.TRAIN: ["commoncrawl_frde"],
        datasets.Split.VALIDATION: ["euelections_dev2019"],
    },
)

# Standard version
builder.download_and_prepare()
ds = builder.as_dataset()

# Streamable version
ds = builder.as_streaming_dataset()

Is there a way to select a subset of datasets using the current main branch, like it seems you can with the old commit? E.g only europarl, news_commentary, etc.

cosmosaa changed discussion title from path/to/scripts/wmt_utils.py ?? to example code incorrect

Sign up or log in to comment