Datasets documentation

Interface de Linha de Comando (CLI)

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface de Linha de Comando (CLI)

🤗 O Datasets oferece uma interface de linha de comando (CLI) com comandos de shell úteis para interagir com seu conjunto de dados.

Você pode verificar os comandos disponíveis:

>>> 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

Excluir do Hub

Excluir uma configuração de dataset de um dataset compatível no 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

Por exemplo:

>>> datasets-cli delete_from_hub USERNAME/DATASET_NAME CONFIG_NAME

Não se esqueça de que você precisa fazer login na sua conta do Hugging Face primeiro:

>>> hf auth login
Update on GitHub