Datasets documentation
命令行界面(CLI)
快速入门
教程
操作指南
概述
通用用法
加载流程流与 PyTorch 配合使用与 TensorFlow 配合使用与 NumPy 配合使用与 JAX 配合使用与 Pandas 配合使用与 Polars 配合使用与 PyArrow 配合使用与 Spark 配合使用缓存管理云存储搜索索引CLI故障排除
音频
视觉
3D
文本
表格数据
时间序列
Agent 评估
数据集仓库
概念指南
参考
You are viewing main version, which requires installation from source. If you'd like
regular pip install, checkout the latest stable version (v4.8.4).
命令行界面(CLI)
🤗 Datasets 提供了一个命令行界面(CLI),包含用于与数据集交互的实用 shell 命令。
您可以检查可用的命令:
>>> datasets-cli --help
usage: datasets-cli <command> [<args>]
positional arguments:
{env,test,delete_from_hub}
datasets-cli command helpers
env Print relevant system environment info.
test Test dataset loading.
delete_from_hub Delete dataset config from the Hub
optional arguments:
-h, --help show this help message and exit从 Hub 中删除
从 Hub 上的受支持数据集中删除一个数据集配置。
>>> datasets-cli delete_from_hub --help
usage: datasets-cli <command> [<args>] delete_from_hub [-h] [--token TOKEN] [--revision REVISION] dataset_id config_name
positional arguments:
dataset_id source dataset ID, e.g. USERNAME/DATASET_NAME or ORGANIZATION/DATASET_NAME
config_name config name to delete
optional arguments:
-h, --help show this help message and exit
--token TOKEN access token to the Hugging Face Hub
--revision REVISION source revision例如:
>>> datasets-cli delete_from_hub USERNAME/DATASET_NAME CONFIG_NAMEUpdate on GitHub请记住,您需要先登录您的 Hugging Face 账户:
>>> hf auth login