hf_load_dataset | R Documentation |
Function has multiple uses - getting pre-made datasets for exploratory analysis, or to figure as means for evaluating your fine-tuned models.
hf_load_dataset( dataset, split = NULL, label_conversion = c("str2int", "int2str", NULL) )
dataset |
The name of a Hugging Face dataset saved on the Hub. Use hf_list_models() to find a dataset. |
split |
Usually one of 'train' , 'test', 'validation' however, check the dataset's meta data at The Hub first. |
label_conversion |
Whether to add an additional column converting labels from str2int or int2str? |
A Hugging Face data set as a tibble
https://huggingface.co/docs/datasets/index
(emo_all_splits <- hf_load_dataset('emo')) (imdb_train <- hf_load_dataset('imdb', split = "train"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.