> For the complete documentation index, see [llms.txt](https://boinc-ai.gitbook.io/datasets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boinc-ai.gitbook.io/datasets/reference/loading-methods.md).

# Loading methods

## Loading methods

Methods for listing and loading datasets and metrics:

### Datasets

**datasets.list\_datasets**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L51)

( with\_community\_datasets = Truewith\_details = False )

Parameters

* **with\_community\_datasets** (`bool`, *optional*, defaults to `True`) — Include the community provided datasets.
* **with\_details** (`bool`, *optional*, defaults to `False`) — Return the full details on the datasets instead of only the short name.

List all the datasets scripts available on the BOINC AI Hub.

Example:

Copied

```
>>> from datasets import list_datasets
>>> list_datasets()
['acronym_identification',
 'ade_corpus_v2',
 'adversarial_qa',
 'aeslc',
 'afrikaans_ner_corpus',
 'ag_news',
 ...
]
```

**datasets.load\_dataset**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/load.py#L1870)

( path: strname: typing.Optional\[str] = Nonedata\_dir: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, typing.Sequence\[str], typing.Mapping\[str, typing.Union\[str, typing.Sequence\[str]]], NoneType] = Nonesplit: typing.Union\[str, datasets.splits.Split, NoneType] = Nonecache\_dir: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Noneverification\_mode: typing.Union\[datasets.utils.info\_utils.VerificationMode, str, NoneType] = Noneignore\_verifications = 'deprecated'keep\_in\_memory: typing.Optional\[bool] = Nonesave\_infos: bool = Falserevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'task = 'deprecated'streaming: bool = Falsenum\_proc: typing.Optional\[int] = Nonestorage\_options: typing.Optional\[typing.Dict] = None\*\*config\_kwargs ) → [Dataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset) or [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict)

Parameters

* **path** (`str`) — Path or name of the dataset. Depending on `path`, the dataset builder that is used comes from a generic dataset script (JSON, CSV, Parquet, text etc.) or from the dataset script (a python file) inside the dataset directory.

  For local datasets:

  * if `path` is a local directory (containing data files only) -> load a generic dataset builder (csv, json, text etc.) based on the content of the directory e.g. `'./path/to/directory/with/my/csv/data'`.
  * if `path` is a local dataset script or a directory containing a local dataset script (if the script has the same name as the directory) -> load the dataset builder from the dataset script e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`.

  For datasets on the BOINC AI Hub (list all available datasets with `boincai_hub.list_datasets`)

  * if `path` is a dataset repository on the HF hub (containing data files only) -> load a generic dataset builder (csv, text etc.) based on the content of the repository e.g. `'username/dataset_name'`, a dataset repository on the HF hub containing your data files.
  * if `path` is a dataset repository on the HF hub with a dataset script (if the script has the same name as the directory) -> load the dataset builder from the dataset script in the dataset repository e.g. `glue`, `squad`, `'username/dataset_name'`, a dataset repository on the HF hub containing a dataset script `'dataset_name.py'`.
* **name** (`str`, *optional*) — Defining the name of the dataset configuration.
* **data\_dir** (`str`, *optional*) — Defining the `data_dir` of the dataset configuration. If specified for the generic builders (csv, text etc.) or the Hub datasets and `data_files` is `None`, the behavior is equal to passing `os.path.join(data_dir, **)` as `data_files` to reference all the files in a directory.
* **data\_files** (`str` or `Sequence` or `Mapping`, *optional*) — Path(s) to source data file(s).
* **split** (`Split` or `str`) — Which split of the data to load. If `None`, will return a `dict` with all splits (typically `datasets.Split.TRAIN` and `datasets.Split.TEST`). If given, will return a single Dataset. Splits can be combined and specified like in tensorflow-datasets.
* **cache\_dir** (`str`, *optional*) — Directory to read/write data. Defaults to `"~/.cache/huggingface/datasets"`.
* **features** (`Features`, *optional*) — Set the features type to use for this dataset.
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, defaults to `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **verification\_mode** ([VerificationMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.VerificationMode) or `str`, defaults to `BASIC_CHECKS`) — Verification mode determining the checks to run on the downloaded/processed dataset information (checksums/size/splits/…).

  Added in 2.9.1
* **ignore\_verifications** (`bool`, defaults to `False`) — Ignore the verifications of the downloaded/processed dataset information (checksums/size/splits/…).

  Deprecated in 2.9.1

  `ignore_verifications` was deprecated in version 2.9.1 and will be removed in 3.0.0. Please use `verification_mode` instead.
* **keep\_in\_memory** (`bool`, defaults to `None`) — Whether to copy the dataset in-memory. If `None`, the dataset will not be copied in-memory unless explicitly enabled by setting `datasets.config.IN_MEMORY_MAX_SIZE` to nonzero. See more details in the [improve performance](https://huggingface.co/docs/datasets/cache#improve-performance) section.
* **save\_infos** (`bool`, defaults to `False`) — Save the dataset information (checksums/size/splits/…).
* **revision** ([Version](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.Version) or `str`, *optional*) — Version of the dataset script to load. As datasets have their own git repository on the Datasets Hub, the default version “main” corresponds to their “main” branch. You can specify a different version than the default “main” by using a commit SHA or a git tag of the dataset repository.
* **token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.
* **use\_auth\_token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.

  Deprecated in 2.14.0

  `use_auth_token` was deprecated in favor of `token` in version 2.14.0 and will be removed in 3.0.0.
* **task** (`str`) — The task to prepare the dataset for during training and evaluation. Casts the dataset’s [Features](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Features) to standardized column names and types as detailed in `datasets.tasks`.

  Deprecated in 2.13.0

  `task` was deprecated in version 2.13.0 and will be removed in 3.0.0.
* **streaming** (`bool`, defaults to `False`) — If set to `True`, don’t download the data files. Instead, it streams the data progressively while iterating on the dataset. An [IterableDataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.IterableDataset) or [IterableDatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.IterableDatasetDict) is returned instead in this case.

  Note that streaming works for datasets that use data formats that support being iterated over like txt, csv, jsonl for example. Json files may be downloaded completely. Also streaming from remote zip or gzip files is supported but other compressed formats like rar and xz are not yet supported. The tgz format doesn’t allow streaming.
* **num\_proc** (`int`, *optional*, defaults to `None`) — Number of processes when downloading and generating the dataset locally. Multiprocessing is disabled by default.

  Added in 2.7.0
* **storage\_options** (`dict`, *optional*, defaults to `None`) — **Experimental**. Key/value pairs to be passed on to the dataset file-system backend, if any.

  Added in 2.11.0
* \***\*config\_kwargs** (additional keyword arguments) — Keyword arguments to be passed to the `BuilderConfig` and used in the [DatasetBuilder](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DatasetBuilder).

Returns

[Dataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset) or [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict)

* if `split` is not `None`: the dataset requested,
* if `split` is `None`, a [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict) with each split.

or [IterableDataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.IterableDataset) or [IterableDatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.IterableDatasetDict): if `streaming=True`

* if `split` is not `None`, the dataset is requested
* if `split` is `None`, a `~datasets.streaming.IterableDatasetDict` with each split.

Load a dataset from the BOINC AI Hub, or a local dataset.

You can find the list of datasets on the [Hub](https://huggingface.co/datasets) or with `boincai_hub.list_datasets`.

A dataset is a directory that contains:

* some data files in generic formats (JSON, CSV, Parquet, text, etc.).
* and optionally a dataset script, if it requires some code to read the data files. This is used to load any kind of formats or structures.

Note that dataset scripts can also download and read data files from anywhere - in case your data files already exist online.

This function does the following under the hood:

1. Download and import in the library the dataset script from `path` if it’s not already cached inside the library.

   If the dataset has no dataset script, then a generic dataset script is imported instead (JSON, CSV, Parquet, text, etc.)

   Dataset scripts are small python scripts that define dataset builders. They define the citation, info and format of the dataset, contain the path or URL to the original data files and the code to load examples from the original data files.

   You can find the complete list of datasets in the Datasets [Hub](https://huggingface.co/datasets).
2. Run the dataset script which will:
   * Download the dataset file from the original URL (see the script) if it’s not already available locally or cached.
   * Process and cache the dataset in typed Arrow tables for caching.

     Arrow table are arbitrarily long, typed tables which can store nested objects and be mapped to numpy/pandas/python generic types. They can be directly accessed from disk, loaded in RAM or even streamed over the web.
3. Return a dataset built from the requested splits in `split` (default: all).

It also allows to load a dataset from a local directory or a dataset repository on the BOINC AI Hub without dataset script. In this case, it automatically loads all the data files from the directory or the dataset repository.

Example:

Load a dataset from the BOINC AI Hub:

Copied

```
>>> from datasets import load_dataset
>>> ds = load_dataset('rotten_tomatoes', split='train')

# Map data files to splits
>>> data_files = {'train': 'train.csv', 'test': 'test.csv'}
>>> ds = load_dataset('namespace/your_dataset_name', data_files=data_files)
```

Load a local dataset:

Copied

```
# Load a CSV file
>>> from datasets import load_dataset
>>> ds = load_dataset('csv', data_files='path/to/local/my_dataset.csv')

# Load a JSON file
>>> from datasets import load_dataset
>>> ds = load_dataset('json', data_files='path/to/local/my_dataset.json')

# Load from a local loading script
>>> from datasets import load_dataset
>>> ds = load_dataset('path/to/local/loading_script/loading_script.py', split='train')
```

Load an [IterableDataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.IterableDataset):

Copied

```
>>> from datasets import load_dataset
>>> ds = load_dataset('rotten_tomatoes', split='train', streaming=True)
```

Load an image dataset with the `ImageFolder` dataset builder:

Copied

```
>>> from datasets import load_dataset
>>> ds = load_dataset('imagefolder', data_dir='/path/to/images', split='train')
```

**datasets.load\_from\_disk**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/load.py#L2179)

( dataset\_path: strfs = 'deprecated'keep\_in\_memory: typing.Optional\[bool] = Nonestorage\_options: typing.Optional\[dict] = None ) → [Dataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset) or [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict)

Parameters

* **dataset\_path** (`str`) — Path (e.g. `"dataset/train"`) or remote URI (e.g. `"s3://my-bucket/dataset/train"`) of the [Dataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset) or [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict) directory where the dataset will be loaded from.
* **fs** (`~filesystems.S3FileSystem` or `fsspec.spec.AbstractFileSystem`, *optional*) — Instance of the remote filesystem used to download the files from.

  Deprecated in 2.9.0

  `fs` was deprecated in version 2.9.0 and will be removed in 3.0.0. Please use `storage_options` instead, e.g. `storage_options=fs.storage_options`.
* **keep\_in\_memory** (`bool`, defaults to `None`) — Whether to copy the dataset in-memory. If `None`, the dataset will not be copied in-memory unless explicitly enabled by setting `datasets.config.IN_MEMORY_MAX_SIZE` to nonzero. See more details in the [improve performance](https://huggingface.co/docs/datasets/cache#improve-performance) section.
* **storage\_options** (`dict`, *optional*) — Key/value pairs to be passed on to the file-system backend, if any.

  Added in 2.9.0

Returns

[Dataset](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset) or [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict)

* If `dataset_path` is a path of a dataset directory: the dataset requested.
* If `dataset_path` is a path of a dataset dict directory, a [DatasetDict](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.DatasetDict) with each split.

Loads a dataset that was previously saved using [save\_to\_disk()](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.save_to_disk) from a dataset directory, or from a filesystem using any implementation of `fsspec.spec.AbstractFileSystem`.

Example:

Copied

```
>>> from datasets import load_from_disk
>>> ds = load_from_disk('path/to/dataset/directory')
```

**datasets.load\_dataset\_builder**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/load.py#L1698)

( path: strname: typing.Optional\[str] = Nonedata\_dir: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, typing.Sequence\[str], typing.Mapping\[str, typing.Union\[str, typing.Sequence\[str]]], NoneType] = Nonecache\_dir: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Nonerevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'storage\_options: typing.Optional\[typing.Dict] = None\*\*config\_kwargs )

Parameters

* **path** (`str`) — Path or name of the dataset. Depending on `path`, the dataset builder that is used comes from a generic dataset script (JSON, CSV, Parquet, text etc.) or from the dataset script (a python file) inside the dataset directory.

  For local datasets:

  * if `path` is a local directory (containing data files only) -> load a generic dataset builder (csv, json, text etc.) based on the content of the directory e.g. `'./path/to/directory/with/my/csv/data'`.
  * if `path` is a local dataset script or a directory containing a local dataset script (if the script has the same name as the directory) -> load the dataset builder from the dataset script e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`.

  For datasets on the BOINC AI Hub (list all available datasets with `boincai_hub.list_datasets`)

  * if `path` is a dataset repository on the HF hub (containing data files only) -> load a generic dataset builder (csv, text etc.) based on the content of the repository e.g. `'username/dataset_name'`, a dataset repository on the HF hub containing your data files.
  * if `path` is a dataset repository on the HF hub with a dataset script (if the script has the same name as the directory) -> load the dataset builder from the dataset script in the dataset repository e.g. `glue`, `squad`, `'username/dataset_name'`, a dataset repository on the HF hub containing a dataset script `'dataset_name.py'`.
* **name** (`str`, *optional*) — Defining the name of the dataset configuration.
* **data\_dir** (`str`, *optional*) — Defining the `data_dir` of the dataset configuration. If specified for the generic builders (csv, text etc.) or the Hub datasets and `data_files` is `None`, the behavior is equal to passing `os.path.join(data_dir, **)` as `data_files` to reference all the files in a directory.
* **data\_files** (`str` or `Sequence` or `Mapping`, *optional*) — Path(s) to source data file(s).
* **cache\_dir** (`str`, *optional*) — Directory to read/write data. Defaults to `"~/.cache/huggingface/datasets"`.
* **features** ([Features](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Features), *optional*) — Set the features type to use for this dataset.
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, defaults to `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **revision** ([Version](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.Version) or `str`, *optional*) — Version of the dataset script to load. As datasets have their own git repository on the Datasets Hub, the default version “main” corresponds to their “main” branch. You can specify a different version than the default “main” by using a commit SHA or a git tag of the dataset repository.
* **token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.
* **use\_auth\_token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.

  Deprecated in 2.14.0

  `use_auth_token` was deprecated in favor of `token` in version 2.14.0 and will be removed in 3.0.0.
* **storage\_options** (`dict`, *optional*, defaults to `None`) — **Experimental**. Key/value pairs to be passed on to the dataset file-system backend, if any.

  Added in 2.11.0
* \***\*config\_kwargs** (additional keyword arguments) — Keyword arguments to be passed to the [BuilderConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.BuilderConfig) and used in the [DatasetBuilder](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DatasetBuilder).

Load a dataset builder from the BOINC AI Hub, or a local dataset. A dataset builder can be used to inspect general information that is required to build a dataset (cache directory, config, dataset info, etc.) without downloading the dataset itself.

You can find the list of datasets on the [Hub](https://huggingface.co/datasets) or with `boincai_hub.list_datasets`.

A dataset is a directory that contains:

* some data files in generic formats (JSON, CSV, Parquet, text, etc.)
* and optionally a dataset script, if it requires some code to read the data files. This is used to load any kind of formats or structures.

Note that dataset scripts can also download and read data files from anywhere - in case your data files already exist online.

Example:

Copied

```
>>> from datasets import load_dataset_builder
>>> ds_builder = load_dataset_builder('rotten_tomatoes')
>>> ds_builder.info.features
{'label': ClassLabel(num_classes=2, names=['neg', 'pos'], id=None),
 'text': Value(dtype='string', id=None)}
```

**datasets.get\_dataset\_config\_names**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L295)

( path: strrevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = Nonedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Nonedynamic\_modules\_path: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, typing.List, typing.Dict, NoneType] = None\*\*download\_kwargs )

Parameters

* **path** (`str`) — path to the dataset processing script with the dataset builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`
  * a dataset identifier on the BOINC AI Hub (list all available datasets and ids with [datasets.list\_datasets()](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.list_datasets)) e.g. `'squad'`, `'glue'` or `'openai/webtext'`
* **revision** (`Union[str, datasets.Version]`, *optional*) — If specified, the dataset module will be loaded from the datasets repository at this version. By default:
  * it is set to the local version of the lib.
  * it will also try to load it from the main branch if it’s not available at the local version of the lib. Specifying a version that is different from your local version of the lib might cause compatibility issues.
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, defaults to `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **dynamic\_modules\_path** (`str`, defaults to `~/.cache/huggingface/modules/datasets_modules`) — Optional path to the directory in which the dynamic modules are saved. It must have been initialized with `init_dynamic_modules`. By default the datasets and metrics are stored inside the `datasets_modules` module.
* **data\_files** (`Union[Dict, List, str]`, *optional*) — Defining the data\_files of the dataset configuration.
* \***\*download\_kwargs** (additional keyword arguments) — Optional attributes for [DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig) which will override the attributes in `download_config` if supplied, for example `token`.

Get the list of available config names for a particular dataset.

Example:

Copied

```
>>> from datasets import get_dataset_config_names
>>> get_dataset_config_names("glue")
['cola',
 'sst2',
 'mrpc',
 'qqp',
 'stsb',
 'mnli',
 'mnli_mismatched',
 'mnli_matched',
 'qnli',
 'rte',
 'wnli',
 'ax']
```

**datasets.get\_dataset\_infos**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L209)

( path: strdata\_files: typing.Union\[str, typing.List, typing.Dict, NoneType] = Nonedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Nonerevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'\*\*config\_kwargs )

Parameters

* **path** (`str`) — path to the dataset processing script with the dataset builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`
  * a dataset identifier on the BOINC AI Hub (list all available datasets and ids with [datasets.list\_datasets()](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.list_datasets)) e.g. `'squad'`, `'glue'` or\``'openai/webtext'`
* **revision** (`Union[str, datasets.Version]`, *optional*) — If specified, the dataset module will be loaded from the datasets repository at this version. By default:
  * it is set to the local version of the lib.
  * it will also try to load it from the main branch if it’s not available at the local version of the lib. Specifying a version that is different from your local version of the lib might cause compatibility issues.
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, defaults to `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **data\_files** (`Union[Dict, List, str]`, *optional*) — Defining the data\_files of the dataset configuration.
* **token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.
* **use\_auth\_token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.

  Deprecated in 2.14.0

  `use_auth_token` was deprecated in favor of `token` in version 2.14.0 and will be removed in 3.0.0.
* \***\*config\_kwargs** (additional keyword arguments) — Optional attributes for builder class which will override the attributes if supplied.

Get the meta information about a dataset, returned as a dict mapping config name to DatasetInfoDict.

Example:

Copied

```
>>> from datasets import get_dataset_infos
>>> get_dataset_infos('rotten_tomatoes')
{'default': DatasetInfo(description="Movie Review Dataset.
 is a dataset of containing 5,331 positive and 5,331 negative processed
ences from Rotten Tomatoes movie reviews...), ...}
```

**datasets.get\_dataset\_split\_names**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L443)

( path: strconfig\_name: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, typing.Sequence\[str], typing.Mapping\[str, typing.Union\[str, typing.Sequence\[str]]], NoneType] = Nonedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Nonerevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'\*\*config\_kwargs )

Parameters

* **path** (`str`) — path to the dataset processing script with the dataset builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`
  * a dataset identifier on the BOINC AI Hub (list all available datasets and ids with [datasets.list\_datasets()](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.list_datasets)) e.g. `'squad'`, `'glue'` or `'openai/webtext'`
* **config\_name** (`str`, *optional*) — Defining the name of the dataset configuration.
* **data\_files** (`str` or `Sequence` or `Mapping`, *optional*) — Path(s) to source data file(s).
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, defaults to `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **revision** ([Version](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.Version) or `str`, *optional*) — Version of the dataset script to load. As datasets have their own git repository on the Datasets Hub, the default version “main” corresponds to their “main” branch. You can specify a different version than the default “main” by using a commit SHA or a git tag of the dataset repository.
* **token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.
* **use\_auth\_token** (`str` or `bool`, *optional*) — Optional string or boolean to use as Bearer token for remote files on the Datasets Hub. If `True`, or not specified, will get token from `"~/.huggingface"`.

  Deprecated in 2.14.0

  `use_auth_token` was deprecated in favor of `token` in version 2.14.0 and will be removed in 3.0.0.
* \***\*config\_kwargs** (additional keyword arguments) — Optional attributes for builder class which will override the attributes if supplied.

Get the list of available splits for a particular config and dataset.

Example:

Copied

```
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names('rotten_tomatoes')
['train', 'validation', 'test']
```

**datasets.inspect\_dataset**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L123)

( path: strlocal\_path: strdownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = None\*\*download\_kwargs )

Parameters

* **path** (`str`) — Path to the dataset processing script with the dataset builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`.
  * a dataset identifier on the BOINC AI Hub (list all available datasets and ids with [list\_datasets()](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.list_datasets)) e.g. `'squad'`, `'glue'` or `'openai/webtext'`.
* **local\_path** (`str`) — Path to the local folder to copy the dataset script to.
* **download\_config** ([DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig), *optional*) — Specific download configuration parameters.
* \***\*download\_kwargs** (additional keyword arguments) — Optional arguments for [DownloadConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadConfig) which will override the attributes of `download_config` if supplied.

Allow inspection/modification of a dataset script by copying on local drive at local\_path.

### Metrics

Metrics is deprecated in 🌍 Datasets. To learn more about how to use metrics, take a look at the library 🌍 [Evaluate](https://huggingface.co/docs/evaluate/index)! In addition to metrics, you can find more tools for evaluating models and datasets.

**datasets.list\_metrics**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L84)

( with\_community\_metrics = Truewith\_details = False )

Parameters

* **with\_community\_metrics** (`bool`, optional, default `True`) — Include the community provided metrics.
* **with\_details** (`bool`, optional, default `False`) — Return the full details on the metrics instead of only the short name.

List all the metrics script available on the BOINC AI Hub.

Deprecated in 2.5.0

Use *evaluate.list\_evaluation\_modules* instead, from the new library 🌍 Evaluate: <https://huggingface.co/docs/evaluate>

Example:

Copied

```
>>> from datasets import list_metrics
>>> list_metrics()
['accuracy',
 'bertscore',
 'bleu',
 'bleurt',
 'cer',
 'chrf',
 ...
]
```

**datasets.load\_metric**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/load.py#L1618)

( path: strconfig\_name: typing.Optional\[str] = Noneprocess\_id: int = 0num\_process: int = 1cache\_dir: typing.Optional\[str] = Noneexperiment\_id: typing.Optional\[str] = Nonekeep\_in\_memory: bool = Falsedownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = Nonedownload\_mode: typing.Union\[datasets.download.download\_manager.DownloadMode, str, NoneType] = Nonerevision: typing.Union\[str, datasets.utils.version.Version, NoneType] = None\*\*metric\_init\_kwargs )

Parameters

* **path** (`str`) — path to the metric processing script with the metric builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./metrics/rouge'` or `'./metrics/rogue/rouge.py'`
  * a metric identifier on the BOINC AI datasets repo (list all available metrics with `datasets.list_metrics()`) e.g. `'rouge'` or `'bleu'`
* **config\_name** (`str`, optional) — selecting a configuration for the metric (e.g. the GLUE metric has a configuration for each subset)
* **process\_id** (`int`, optional) — for distributed evaluation: id of the process
* **num\_process** (`int`, optional) — for distributed evaluation: total number of processes
* **cache\_dir** (Optional str) — path to store the temporary predictions and references (default to *\~/.cache/huggingface/metrics/*)
* **experiment\_id** (`str`) — A specific experiment id. This is used if several distributed evaluations share the same file system. This is useful to compute metrics in distributed setups (in particular non-additive metrics like F1).
* **keep\_in\_memory** (bool) — Whether to store the temporary results in memory (defaults to False)
* **download\_config** (Optional `datasets.DownloadConfig` — specific download configuration parameters.
* **download\_mode** ([DownloadMode](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/builder_classes#datasets.DownloadMode) or `str`, default `REUSE_DATASET_IF_EXISTS`) — Download/generate mode.
* **revision** (Optional `Union[str, datasets.Version]`) — if specified, the module will be loaded from the datasets repository at this version. By default, it is set to the local version of the lib. Specifying a version that is different from your local version of the lib might cause compatibility issues.

Load a *datasets.Metric*.

Deprecated in 2.5.0

Use *evaluate.load* instead, from the new library 🌍 Evaluate: <https://huggingface.co/docs/evaluate>

Example:

Copied

```
>>> from datasets import load_metric
>>> accuracy = load_metric('accuracy')
>>> accuracy.compute(references=[1, 0], predictions=[1, 1])
{'accuracy': 0.5}
```

**datasets.inspect\_metric**

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/inspect.py#L165)

( path: strlocal\_path: strdownload\_config: typing.Optional\[datasets.download.download\_config.DownloadConfig] = None\*\*download\_kwargs )

Parameters

* **path** (`str`) — path to the dataset processing script with the dataset builder. Can be either:
  * a local path to processing script or the directory containing the script (if the script has the same name as the directory), e.g. `'./dataset/squad'` or `'./dataset/squad/squad.py'`
  * a dataset identifier on the BOINC AI Hub (list all available datasets and ids with `datasets.list_datasets()`) e.g. `'squad'`, `'glue'` or `'openai/webtext'`
* **local\_path** (`str`) — path to the local folder to copy the datset script to.
* **download\_config** (Optional `datasets.DownloadConfig`) — specific download configuration parameters.
* \***\*download\_kwargs** (additional keyword arguments) — optional attributes for DownloadConfig() which will override the attributes in download\_config if supplied.

Allow inspection/modification of a metric script by copying it on local drive at local\_path.

Deprecated in 2.5.0

Use *evaluate.inspect\_evaluation\_module* instead, from the new library 🌍 Evaluate instead: <https://huggingface.co/docs/evaluate>

### From files

Configurations used to load data files. They are used when loading local files or a dataset repository:

* local files: `load_dataset("parquet", data_dir="path/to/data/dir")`
* dataset repository: `load_dataset("allenai/c4")`

You can pass arguments to `load_dataset` to configure data loading. For example you can specify the `sep` parameter to define the [CsvConfig](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/loading_methods#datasets.packaged_modules.csv.CsvConfig) that is used to load the data:

Copied

```
load_dataset("csv", data_dir="path/to/data/dir", sep="\t")
```

#### Text

#### class datasets.packaged\_modules.text.TextConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/text/text.py#L18)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Noneencoding: str = 'utf-8'errors: dataclasses.InitVar\[typing.Optional\[str]] = 'deprecated'encoding\_errors: typing.Optional\[str] = Nonechunksize: int = 10485760keep\_linebreaks: bool = Falsesample\_by: str = 'line' )

BuilderConfig for text files.

#### class datasets.packaged\_modules.text.Text

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/text/text.py#L39)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### CSV

#### class datasets.packaged\_modules.csv.CsvConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/csv/csv.py#L24)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonesep: str = ','delimiter: typing.Optional\[str] = Noneheader: typing.Union\[int, typing.List\[int], str, NoneType] = 'infer'names: typing.Optional\[typing.List\[str]] = Nonecolumn\_names: typing.Optional\[typing.List\[str]] = Noneindex\_col: typing.Union\[int, str, typing.List\[int], typing.List\[str], NoneType] = Noneusecols: typing.Union\[typing.List\[int], typing.List\[str], NoneType] = Noneprefix: typing.Optional\[str] = Nonemangle\_dupe\_cols: bool = Trueengine: typing.Union\[typing.Literal\['c', 'python', 'pyarrow'], NoneType] = Noneconverters: typing.Dict\[typing.Union\[int, str], typing.Callable\[\[typing.Any], typing.Any]] = Nonetrue\_values: typing.Optional\[list] = Nonefalse\_values: typing.Optional\[list] = Noneskipinitialspace: bool = Falseskiprows: typing.Union\[int, typing.List\[int], NoneType] = Nonenrows: typing.Optional\[int] = Nonena\_values: typing.Union\[str, typing.List\[str], NoneType] = Nonekeep\_default\_na: bool = Truena\_filter: bool = Trueverbose: bool = Falseskip\_blank\_lines: bool = Truethousands: typing.Optional\[str] = Nonedecimal: str = '.'lineterminator: typing.Optional\[str] = Nonequotechar: str = '"'quoting: int = 0escapechar: typing.Optional\[str] = Nonecomment: typing.Optional\[str] = Noneencoding: typing.Optional\[str] = Nonedialect: typing.Optional\[str] = Noneerror\_bad\_lines: bool = Truewarn\_bad\_lines: bool = Trueskipfooter: int = 0doublequote: bool = Truememory\_map: bool = Falsefloat\_precision: typing.Optional\[str] = Nonechunksize: int = 10000features: typing.Optional\[datasets.features.features.Features] = Noneencoding\_errors: typing.Optional\[str] = 'strict'on\_bad\_lines: typing.Literal\['error', 'warn', 'skip'] = 'error'date\_format: typing.Optional\[str] = None )

BuilderConfig for CSV.

#### class datasets.packaged\_modules.csv.Csv

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/csv/csv.py#L137)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### JSON

#### class datasets.packaged\_modules.json.JsonConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/json/json.py#L19)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Noneencoding: str = 'utf-8'encoding\_errors: typing.Optional\[str] = Nonefield: typing.Optional\[str] = Noneuse\_threads: bool = Trueblock\_size: typing.Optional\[int] = Nonechunksize: int = 10485760newlines\_in\_values: typing.Optional\[bool] = None )

BuilderConfig for JSON.

#### class datasets.packaged\_modules.json.Json

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/json/json.py#L32)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### Parquet

#### class datasets.packaged\_modules.parquet.ParquetConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/parquet/parquet.py#L16)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonebatch\_size: int = 10000columns: typing.Optional\[typing.List\[str]] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = None )

BuilderConfig for Parquet.

#### class datasets.packaged\_modules.parquet.Parquet

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/parquet/parquet.py#L24)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### Arrow

#### class datasets.packaged\_modules.arrow\.ArrowConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/arrow/arrow.py#L15)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = None )

BuilderConfig for Arrow.

#### class datasets.packaged\_modules.arrow\.Arrow

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/arrow/arrow.py#L21)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### SQL

#### class datasets.packaged\_modules.sql.SqlConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/sql/sql.py#L24)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonesql: typing.Union\[str, ForwardRef('sqlalchemy.sql.Selectable')] = Nonecon: typing.Union\[str, ForwardRef('sqlalchemy.engine.Connection'), ForwardRef('sqlalchemy.engine.Engine'), ForwardRef('sqlite3.Connection')] = Noneindex\_col: typing.Union\[str, typing.List\[str], NoneType] = Nonecoerce\_float: bool = Trueparams: typing.Union\[typing.List, typing.Tuple, typing.Dict, NoneType] = Noneparse\_dates: typing.Union\[typing.List, typing.Dict, NoneType] = Nonecolumns: typing.Optional\[typing.List\[str]] = Nonechunksize: typing.Optional\[int] = 10000features: typing.Optional\[datasets.features.features.Features] = None )

BuilderConfig for SQL.

#### class datasets.packaged\_modules.sql.Sql

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/sql/sql.py#L90)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### Images

#### class datasets.packaged\_modules.imagefolder.ImageFolderConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/imagefolder/imagefolder.py#L12)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonedrop\_labels: bool = Nonedrop\_metadata: bool = None )

BuilderConfig for ImageFolder.

#### class datasets.packaged\_modules.imagefolder.ImageFolder

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/imagefolder/imagefolder.py#L19)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )

#### Audio

#### class datasets.packaged\_modules.audiofolder.AudioFolderConfig

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/audiofolder/audiofolder.py#L12)

( name: str = 'default'version: typing.Union\[str, datasets.utils.version.Version, NoneType] = 0.0.0data\_dir: typing.Optional\[str] = Nonedata\_files: typing.Optional\[datasets.data\_files.DataFilesDict] = Nonedescription: typing.Optional\[str] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonedrop\_labels: bool = Nonedrop\_metadata: bool = None )

Builder Config for AudioFolder.

#### class datasets.packaged\_modules.audiofolder.AudioFolder

[\<source>](https://github.com/huggingface/datasets/blob/2.14.5/src/datasets/packaged_modules/audiofolder/audiofolder.py#L19)

( cache\_dir: typing.Optional\[str] = Nonedataset\_name: typing.Optional\[str] = Noneconfig\_name: typing.Optional\[str] = Nonehash: typing.Optional\[str] = Nonebase\_path: typing.Optional\[str] = Noneinfo: typing.Optional\[datasets.info.DatasetInfo] = Nonefeatures: typing.Optional\[datasets.features.features.Features] = Nonetoken: typing.Union\[bool, str, NoneType] = Noneuse\_auth\_token = 'deprecated'repo\_id: typing.Optional\[str] = Nonedata\_files: typing.Union\[str, list, dict, datasets.data\_files.DataFilesDict, NoneType] = Nonedata\_dir: typing.Optional\[str] = Nonestorage\_options: typing.Optional\[dict] = Nonewriter\_batch\_size: typing.Optional\[int] = Nonename = 'deprecated'\*\*config\_kwargs )
