Add-ons to the huggingface `datasets`
Project description
datasets2
provides add-ons to the huggingface datasets
.
Example usage:
# datasets is just the huggingface datasets
# load_dataset and save_to_disk adds parquet support to datasets.load_dataset and datasets.Dataset.save_to_disk
from datasets2 import datasets, load_dataset, save_to_disk
my_dataset = prepare_my_huggingface_dataset()
output_dir = "my_dataset_dir"
save_to_disk(my_dataset, output_dir, parquet=True)
load_dataset(output_dir) # automatically infers if the dataset uses parquet format.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datasets2-0.1.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for datasets2-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 772d00d7799fe2142d34ad067d34fa57f5599dbcada1fa2a1d660ad614088345 |
|
MD5 | e4c6198b80eef8ecb1dc02fc1f0f9d54 |
|
BLAKE2b-256 | 5bff9b4dc54201a9e99784039826809f9d05dbd3c261d051f2c0dfb6a00184f3 |