Clarify typed-decision coverage and provenance
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: tasksource-jev
|
| 3 |
language:
|
| 4 |
- multilingual
|
| 5 |
license: other
|
|
@@ -14,194 +14,98 @@ tags:
|
|
| 14 |
- runtime-defined-decisions
|
| 15 |
- decision-models
|
| 16 |
- multiple-choice
|
| 17 |
-
size_categories:
|
| 18 |
-
- 100K<n<1M
|
| 19 |
---
|
| 20 |
|
| 21 |
-
# tasksource-jev
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
| `
|
| 45 |
-
| `
|
| 46 |
-
| `
|
| 47 |
-
| `
|
| 48 |
-
| `
|
| 49 |
-
| `split`
|
| 50 |
-
|
| 51 |
-
Classification criteria are the source task's label names. Multiple-choice
|
| 52 |
-
criteria are the answer choices. Every source row is retained as a direct
|
| 53 |
-
`choice` for classification and multiple choice. For selected token tasks, at
|
| 54 |
-
most two token questions are sampled deterministically from each source
|
| 55 |
-
sequence; one non-`O` token is preferred when available. BIO/BILOU boundaries
|
| 56 |
-
and compact POS or dependency labels are expanded into readable criteria.
|
| 57 |
-
Only `Sequence(ClassLabel)` or equivalent `List(ClassLabel)` ontologies with
|
| 58 |
-
2–32 readable labels qualify. This release includes CoNLL-2003 NER and WNUT-17
|
| 59 |
-
token decisions from checked data-only mirrors; see
|
| 60 |
-
[token-source-status.md](token-source-status.md) for the source audit and backlog.
|
| 61 |
-
The `group_id` lets several questions share one source row without a costly
|
| 62 |
-
global grouping pass. A deterministic augmentation pass adds label-verification `noul`
|
| 63 |
-
questions to about 5% of rows. Ordered-rubric `score` augmentation is available
|
| 64 |
-
for genuinely ordinal sources but is disabled by default. Native regression and
|
| 65 |
-
ordinal recasting will be used for score examples rather than imposing an order
|
| 66 |
-
on nominal classification labels.
|
| 67 |
-
|
| 68 |
-
In the canonical Tasksource recast, related token rows also carry
|
| 69 |
-
`shared_state`, `source_row`, and distinct `question_id` values. Pass rows from
|
| 70 |
-
one `source_row` to `render_systemone_group(rows)` to obtain a single Jev
|
| 71 |
-
request with several questions over the same sentence. The Parquet view keeps
|
| 72 |
-
one decision per row so it can be shuffled, sampled, or streamed normally.
|
| 73 |
-
|
| 74 |
-
### Graded sources
|
| 75 |
-
|
| 76 |
-
Sources labelled with ratings, annotator fractions, or vote distributions are
|
| 77 |
-
recast natively rather than dropped (sources `graded/<family>`, defined in
|
| 78 |
-
`src/tasksource/jev/graded.py`). Ordinal ratings become `score` questions
|
| 79 |
-
with stated levels (HelpSteer, essay grading, app stars, JOCI plausibility),
|
| 80 |
-
bounded quantities become `noul` rescaled to [0, 1] (STS similarity, SICK
|
| 81 |
-
relatedness, acceptability, OASST and Civil Comments annotator rates), and
|
| 82 |
-
ChaosNLI's 100 votes become a soft `choice` target. Sibling annotations of one
|
| 83 |
-
input share a state: a HelpSteer response carries five `score` questions, an
|
| 84 |
-
OASST reply thirteen `noul` questions, a Civil Comments comment seven.
|
| 85 |
-
|
| 86 |
-
### Procedural sources
|
| 87 |
-
|
| 88 |
-
About 10% of each split comes from
|
| 89 |
-
[`tasksource/procedural-jev`](https://huggingface.co/datasets/tasksource/procedural-jev)
|
| 90 |
-
(sources `procedural-jev/<config>`): generated JSON states with two or three
|
| 91 |
-
native questions each, mixing `choice`, `noul` (including exact posterior
|
| 92 |
-
probabilities), and `score` over ordered rubrics. Every question over a state
|
| 93 |
-
shares its `group_id`, and the cap keeps groups whole. These rows are never
|
| 94 |
-
augmented, so their wording is exactly as generated.
|
| 95 |
-
|
| 96 |
-
### Deterministic subrecasts
|
| 97 |
-
|
| 98 |
-
The release adds conservative, low-frequency variants while retaining every
|
| 99 |
-
direct row:
|
| 100 |
-
|
| 101 |
-
| variant | default rate | purpose |
|
| 102 |
-
|---|---:|---|
|
| 103 |
-
| `label_verification` | 5% | A `noul` judgement asking whether a deterministically proposed label is correct. Correct and incorrect proposals are balanced. |
|
| 104 |
-
| `criteria_permutation` | 5% | The same `choice` decision with options and targets permuted together, reducing option-position shortcuts. |
|
| 105 |
-
| `instruction_paraphrase` | 5% | The same decision with a manually vetted equivalent instruction. Common NLI and sentiment label groups receive specific wording; other tasks use conservative generic alternatives. |
|
| 106 |
-
| `paired_text_format` | 5% of paired rows | Neutral alternatives to repeated `text_A`/`text_B` field labels, without assuming a task-specific relation between the texts. |
|
| 107 |
-
|
| 108 |
-
All transformations are derived exactly from the source target and introduce no
|
| 109 |
-
teacher-generated claims. Candidate-subset decisions are a possible later
|
| 110 |
-
addition. Synthetic uncertainty, abstention, and nominal-to-ordinal conversions
|
| 111 |
-
are intentionally excluded because one-hot classification labels do not justify
|
| 112 |
-
them.
|
| 113 |
-
For `noul`, `target` contains the scalar truth probability and `options` is empty;
|
| 114 |
-
for `choice` and `score`, `target` is aligned with `options`. The direct answer
|
| 115 |
-
and criteria are unchanged; lower-frequency variants are identified by
|
| 116 |
-
`variant`. In the published view, paired-text field names also use
|
| 117 |
-
deterministic, hand-written alternatives (`First text` / `Second text`,
|
| 118 |
-
`Passage A` / `Passage B`, or `A` / `B`) to reduce repeated `text_A` / `text_B`
|
| 119 |
-
boilerplate. Common direct question wording is likewise chosen from vetted
|
| 120 |
-
equivalents without adding rows. The canonical recast remains fixed.
|
| 121 |
|
| 122 |
```python
|
| 123 |
from datasets import load_dataset
|
| 124 |
|
| 125 |
-
|
| 126 |
-
row =
|
| 127 |
-
|
| 128 |
```
|
| 129 |
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
```
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
[Jev build runbook](https://github.com/sileod/tasksource/blob/main/docs/jev/README.md)
|
| 169 |
-
documents validation, publication, and the limits of exact reproducibility:
|
| 170 |
-
|
| 171 |
-
```bash
|
| 172 |
-
PYTHONPATH=.:src python scripts/build_jev_dataset.py --output build/tasksource-jev --finalize
|
| 173 |
-
```
|
| 174 |
-
|
| 175 |
-
## Licensing and provenance
|
| 176 |
-
|
| 177 |
-
Tasksource is a preprocessing framework and catalog, not the original publisher
|
| 178 |
-
of the constituent datasets. Copyright, license, and usage restrictions remain
|
| 179 |
-
those of each upstream dataset. Users should consult the upstream dataset card
|
| 180 |
-
identified by `source` before redistributing or using a subset. The aggregate is
|
| 181 |
-
therefore marked `license: other`; no single license is asserted over all rows.
|
| 182 |
|
| 183 |
## Citation
|
| 184 |
|
| 185 |
-
If this recast is useful, cite
|
| 186 |
-
|
| 187 |
|
| 188 |
```bibtex
|
| 189 |
@inproceedings{sileo-2024-tasksource,
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
Sakti, Sakriani and
|
| 197 |
-
Xue, Nianwen",
|
| 198 |
-
booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
|
| 199 |
-
month = may,
|
| 200 |
-
year = "2024",
|
| 201 |
-
address = "Torino, Italia",
|
| 202 |
-
publisher = "ELRA and ICCL",
|
| 203 |
-
url = "https://aclanthology.org/2024.lrec-main.1361/",
|
| 204 |
-
pages = "15655--15684",
|
| 205 |
-
abstract = "The HuggingFace Datasets Hub hosts thousands of datasets, offering exciting opportunities for language model training and evaluation. However, datasets for a specific task type often have different structures, making harmonization challenging which prevents the interchangeable use of comparable datasets. As a result, multi-task training or evaluation necessitates manual work to fit data into task templates. Several initiatives independently tackle this issue by releasing harmonized datasets or providing harmonization codes to preprocess datasets into a consistent format. We identify patterns in such preprocessings, such as column renaming, or more complex patterns. We then propose an annotation framework that enables concise, readable, and reusable preprocessing annotations. tasksource annotates more than 600 task preprocessings and provides a backend to automate dataset alignment. We fine-tune a multi-task text encoder on all tasksource tasks, outperforming every publicly available text encoder of comparable parameter count according to an external evaluation."
|
| 206 |
}
|
| 207 |
```
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: tasksource-jev-typed-decisions
|
| 3 |
language:
|
| 4 |
- multilingual
|
| 5 |
license: other
|
|
|
|
| 14 |
- runtime-defined-decisions
|
| 15 |
- decision-models
|
| 16 |
- multiple-choice
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# tasksource-jev-typed-decisions
|
| 20 |
+
|
| 21 |
+
Hundreds of source tasks, one typed-decision format. This dataset recasts
|
| 22 |
+
Tasksource's broad collection of NLP datasets as decisions whose criteria are
|
| 23 |
+
supplied with each example, rather than fixed in a model head. Much of that
|
| 24 |
+
breadth comes from human-written or human-annotated English and multilingual
|
| 25 |
+
data: classification, question answering, and selected token tasks. The
|
| 26 |
+
source catalog now also includes newly sourced
|
| 27 |
+
[IT support tickets](https://huggingface.co/datasets/tasksource/it-support-tickets)
|
| 28 |
+
with seven categories assigned by support professionals. A separate procedural
|
| 29 |
+
slice adds multi-question states and calibrated targets; it is identified by its
|
| 30 |
+
`procedural-jev/` source prefix, not presented as human-authored data.
|
| 31 |
+
|
| 32 |
+
This is useful when training a decision model to handle *new label sets at
|
| 33 |
+
runtime*: the same columns cover sentiment, inference, intent, entity tags,
|
| 34 |
+
ticket routing, graded judgments, and more. Tasksource supplies the breadth;
|
| 35 |
+
the Jev recast supplies a consistent `state + question + criteria → target`
|
| 36 |
+
interface. The project is independent of TypeSafe and OpenJev.
|
| 37 |
+
|
| 38 |
+
## Data at a glance
|
| 39 |
+
|
| 40 |
+
| column | meaning |
|
| 41 |
+
|---|---|
|
| 42 |
+
| `state` | Text or structured input to judge. |
|
| 43 |
+
| `question` | What to decide about that state. |
|
| 44 |
+
| `kind` | `choice`, `noul` (truth probability), or `score` (ordered levels). |
|
| 45 |
+
| `options` | Runtime criteria for `choice`/`score`; empty for `noul`. |
|
| 46 |
+
| `target` | Distribution aligned with `options`, or one probability for `noul`. |
|
| 47 |
+
| `source`, `split`, `variant` | Provenance, original train/dev/test identity, and transformation. |
|
| 48 |
+
| `id`, `group_id`, `question_id` | Decision identity and questions sharing a source example. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
```python
|
| 51 |
from datasets import load_dataset
|
| 52 |
|
| 53 |
+
ds = load_dataset("tasksource/tasksource-jev-typed-decisions")
|
| 54 |
+
row = ds["train"][0]
|
| 55 |
+
print(row["state"], row["question"], row["options"], row["target"])
|
| 56 |
```
|
| 57 |
|
| 58 |
+
Most Tasksource classification targets are one-hot. Native graded sources add
|
| 59 |
+
soft distributions or ordinal scores where the original annotation supports
|
| 60 |
+
them; no uncertainty is invented from a hard label. Selected CoNLL-2003 and
|
| 61 |
+
WNUT-17 token tasks ask at most two readable BIO-tag questions per sentence.
|
| 62 |
+
Several questions can share a `group_id`; Parquet keeps one decision per row
|
| 63 |
+
for easy streaming and shuffling. The
|
| 64 |
+
[procedural source](https://huggingface.co/datasets/tasksource/procedural-jev)
|
| 65 |
+
contributes `choice`, `noul`, and `score` questions over shared states.
|
| 66 |
+
|
| 67 |
+
Deterministic, low-frequency variants include label verification, criterion
|
| 68 |
+
permutation, vetted instruction paraphrases, and paired-text field wording.
|
| 69 |
+
The `variant` column identifies them. The source's direct decision remains in
|
| 70 |
+
the data. The first 1,000 training rows are interleaved for a more useful
|
| 71 |
+
Dataset Viewer preview; this changes order, not membership.
|
| 72 |
+
|
| 73 |
+
The release builder targets up to one million rows with a 90/5/5
|
| 74 |
+
train/dev/test allocation. It balances source *families* while sampling their
|
| 75 |
+
configs, keeps multi-question groups intact, and excludes BIG-bench, MMLU,
|
| 76 |
+
and BLiMP. Consult the Hub split counts for the currently published size.
|
| 77 |
+
|
| 78 |
+
## Provenance and limits
|
| 79 |
+
|
| 80 |
+
Tasksource harmonizes the source datasets; it does not own their content.
|
| 81 |
+
Human-authored, crowd-annotated, and procedural rows should not be treated as
|
| 82 |
+
interchangeable evidence. Use `source` to inspect the original dataset and
|
| 83 |
+
its license before reuse. The aggregate has `license: other` because no single
|
| 84 |
+
upstream license covers every row. The ticket source, for example, is the
|
| 85 |
+
[Benitez Pereira collection](https://doi.org/10.5281/zenodo.7648117), not
|
| 86 |
+
synthetic ticket text.
|
| 87 |
+
|
| 88 |
+
Some upstream tasks fail to load or preprocess; the build records those
|
| 89 |
+
failures instead of implying complete coverage. The builder writes
|
| 90 |
+
`failed-tasks.json`, `fixed-source-audit.json`, `build-manifest.json`, and
|
| 91 |
+
`release-audit.json`. The
|
| 92 |
+
[build runbook](https://github.com/sileod/tasksource/blob/main/docs/jev/README.md)
|
| 93 |
+
documents the resumable Parquet pipeline, validation, and reproducibility
|
| 94 |
+
boundary. For an uncapped canonical recast, use
|
| 95 |
+
`load_task("glue/rte", recast="jev")` in Tasksource.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
## Citation
|
| 98 |
|
| 99 |
+
If this recast is useful, cite the Tasksource collection and preprocessing
|
| 100 |
+
framework:
|
| 101 |
|
| 102 |
```bibtex
|
| 103 |
@inproceedings{sileo-2024-tasksource,
|
| 104 |
+
title = {tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework},
|
| 105 |
+
author = {Sileo, Damien},
|
| 106 |
+
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
|
| 107 |
+
year = {2024},
|
| 108 |
+
pages = {15655--15684},
|
| 109 |
+
url = {https://aclanthology.org/2024.lrec-main.1361/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
}
|
| 111 |
```
|