diff --git a/src/datasets/builder.py b/src/datasets/builder.py index d7e07a8e316..f431a005c21 100644 --- a/src/datasets/builder.py +++ b/src/datasets/builder.py @@ -199,6 +199,12 @@ class DatasetBuilder: It affects the data generated on disk: different configurations will have their own subdirectories and versions. If not provided, the default configuration is used (if it exists). + + + + Parameter `name` was renamed to `config_name`. + + hash (`str`, *optional*): Hash specific to the dataset code. Used to update the caching directory when the dataset loading script code is updated (to avoid reusing old data). The typical caching directory (defined in ``self._relative_data_dir``) is: ``name/version/hash/``. @@ -219,7 +225,14 @@ class DatasetBuilder: ``os.path.join(data_dir, "**")`` as `data_files`. For builders that require manual download, it must be the path to the local directory containing the manually downloaded data. - name (`str`): Deprecated. Use `config_name` instead. + name (`str`): Configuration name for the dataset. + + + + Use `config_name` instead. + + + **config_kwargs (additional keyword arguments): Keyword arguments to be passed to the corresponding builder configuration class, set on the class attribute [`DatasetBuilder.BUILDER_CONFIG_CLASS`]. The builder configuration class is [`BuilderConfig`] or a subclass of it.