Datasets documentation

واجهة سطر الأوامر (CLI)

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v5.2.0).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

واجهة سطر الأوامر (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_NAME

لا تنسَ أنك بحاجة إلى تسجيل الدخول إلى حسابك على Hugging Face أولاً:

>>> hf auth login
Update on GitHub