File size: 1,879 Bytes
8aa03ea
545314f
0391d43
 
 
 
 
 
 
8d2375c
 
 
00e3665
 
 
 
 
 
8d2375c
 
 
 
 
 
 
 
545314f
774cb9f
8d2375c
545314f
774cb9f
8d2375c
545314f
774cb9f
6b297c6
545314f
8aa03ea
 
0391d43
 
 
 
 
 
 
 
 
 
 
 
 
b363c89
46d46cd
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
50
51
52
53
54
55
56
57
58
59
60
61
---
license: other
task_categories:
- zero-shot-classification
- text-classification
task_ids:
- natural-language-inference
language:
- en
dataset_info:
  features:
  - name: labels
    dtype:
      class_label:
        names:
          '0': entailment
          '1': neutral
          '2': contradiction
  - name: premise
    dtype: string
  - name: hypothesis
    dtype: string
  - name: task
    dtype: string
  splits:
  - name: train
    num_bytes: 551417533
    num_examples: 1090333
  - name: validation
    num_bytes: 10825569
    num_examples: 14419
  - name: test
    num_bytes: 9738922
    num_examples: 14680
  download_size: 302498339
  dataset_size: 571982024
---

[tasksource](https://github.com/sileod/tasksource) classification tasks recasted as natural language inference. 
This dataset is intended to improve label understanding in [zero-shot classification HF pipelines](https://huggingface.co/docs/transformers/main/main_classes/pipelines#transformers.ZeroShotClassificationPipeline
).

Inputs that are text pairs are separated by a newline (\n).
```python
from transformers import pipeline
classifier = pipeline(model="sileod/deberta-v3-base-tasksource-nli")
classifier(
    "I have a problem with my iphone that needs to be resolved asap!!",
    candidate_labels=["urgent", "not urgent", "phone", "tablet", "computer"],
)
```
[deberta-v3-base-tasksource-nli](https://huggingface.co/sileod/deberta-v3-base-tasksource-nli)  now includes `label-nli` in its training mix (a relatively small portion, to keep the model general, but note that nli models work for label-like zero shot classification without specific supervision (https://aclanthology.org/D19-1404.pdf).


```
@article{sileo2023tasksource,
  title={tasksource: A Dataset Harmonization Framework for Streamlined NLP Multi-Task Learning and Evaluation},
  author={Sileo, Damien},
  year={2023}
}
```