HuggingFaceDatasetManager
- token (str): The Hugging Face API token. If not provided, the token will be read from the environment variable
HF_TOKEN
.
init
create_dataset_card
- dataset_name (str): The name of the dataset.
- description (str): A description of the dataset.
- license (str): The license of the dataset. (default: :obj:
None
) - version (str): The version of the dataset. (default: :obj:
None
) - tags (list): A list of tags for the dataset.(default: :obj:
None
) - authors (list): A list of authors of the dataset. (default: :obj:
None
) - size_category (list): A size category for the dataset. (default: :obj:
None
) - language (list): A list of languages the dataset is in. (default: :obj:
None
) - task_categories (list): A list of task categories. (default: :obj:
None
) - content (str): Custom markdown content that the user wants to add to the dataset card. (default: :obj:
None
)
create_dataset
- name (str): The name of the dataset.
- private (bool): Whether the dataset should be private. defaults to False.
- kwargs (Any): Additional keyword arguments.
list_datasets
- username (str): The username of the user whose datasets to list.
- limit (int): The maximum number of datasets to list. (default: :obj:
100
) - kwargs (Any): Additional keyword arguments.
delete_dataset
- dataset_name (str): The name of the dataset to delete.
- kwargs (Any): Additional keyword arguments.
add_records
- dataset_name (str): The name of the dataset.
- records (List[Record]): A list of records to add to the dataset.
- filepath (str): The path to the file containing the records.
- kwargs (Any): Additional keyword arguments.
update_records
- dataset_name (str): The name of the dataset.
- records (List[Record]): A list of records to update in the dataset.
- filepath (str): The path to the file containing the records.
- kwargs (Any): Additional keyword arguments.
delete_record
- dataset_name (str): The name of the dataset.
- record_id (str): The ID of the record to delete.
- filepath (str): The path to the file containing the records.
- kwargs (Any): Additional keyword arguments.
list_records
- dataset_name (str): The name of the dataset.
- filepath (str): The path to the file containing the records.
- kwargs (Any): Additional keyword arguments.