Preprocessings to prepare datasets for a task
Project description
tasksource: 490+ dataset harmonization preprocessings with structured annotations for frictionless extreme multi-task learning and evaluation
Huggingface Datasets is a great library, but it lacks standardization, and datasets require preprocessing work to be used interchangeably.
tasksource
automates this and facilitates multi-task learning scaling and reproducibility.
Each dataset is standardized to either MultipleChoice
, Classification
, or TokenClassification
dataset with identical fields. We do not support generation tasks as they are addressed by promptsource. All implemented preprocessings are in tasks.py or tasks.md. A preprocessing is a function that accepts a dataset and returns the standardized dataset. Preprocessing code is concise and human-readable.
Installation and usage:
pip install tasksource
Get the task index and iterate over harmonized tasks:
from tasksource import list_tasks, load_task
df = list_tasks()
for id in df[df.task_type=="MultipleChoice"].id:
dataset = load_task(id)
# all yielded datasets can be used interchangeably
See supported 490+ tasks in tasks.md (+200 MultipleChoice tasks, +200 Classification tasks). Feel free to request a new task.
Pretrained model:
I pretrained models on tasksource and obtained state-of-the-art results: https://hf.co/sileod/deberta-v3-base-tasksource-nli
Contact and citation
I can help you integrate tasksource in your experiments. damien.sileo@inria.fr
More details on this article:
@article{sileo2023tasksource,
title={tasksource: Structured Dataset Preprocessing Annotations for Frictionless Extreme Multi-Task Learning and Evaluation},
author={Sileo, Damien},
url= {https://arxiv.org/abs/2301.05948},
journal={arXiv preprint arXiv:2301.05948},
year={2023}
}
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
Built Distribution
Hashes for tasksource-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed3f4c63ad0d6a697e7fc5dce0f2f30fec3c762675c310db3ba5abc569e3238 |
|
MD5 | f8b0fae913476b71d6360fc40337f581 |
|
BLAKE2b-256 | b6262083fd1a9bdfc63a23d4a59915b7f7a921205d2bd51c40b8eb04ff8272c2 |