tasksource 0.0.40__tar.gz → 0.0.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tasksource-0.0.40 → tasksource-0.0.41}/PKG-INFO +16 -2
- {tasksource-0.0.40 → tasksource-0.0.41}/README.md +6 -1
- tasksource-0.0.41/src/tasksource/metadata/original.txt +250 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/recast.py +2 -2
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/tasks.py +46 -7
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource.egg-info/PKG-INFO +16 -2
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource.egg-info/SOURCES.txt +1 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/tasks.md +455 -449
- {tasksource-0.0.40 → tasksource-0.0.41}/.github/scripts/release.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/.github/workflows/python-publish.yml +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/.github/workflows/release.yml +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/.gitignore +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/CITATION.cff +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/LICENSE +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/mtasks.md +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/pyproject.toml +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/setup.cfg +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/__init__.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/access.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/metadata/__init__.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/metadata/bigbench_groups.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/metadata/blimp_groups.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/metadata/popularity.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/mtasks.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource/preprocess.py +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource.egg-info/dependency_links.txt +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource.egg-info/requires.txt +0 -0
- {tasksource-0.0.40 → tasksource-0.0.41}/src/tasksource.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tasksource
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.41
|
|
4
4
|
Summary: Preprocessings to prepare datasets for a task
|
|
5
5
|
Home-page: https://github.com/sileod/tasksource/
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -9,6 +9,15 @@ Classifier: Intended Audience :: Developers
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: dotwiz
|
|
13
|
+
Requires-Dist: funcy
|
|
14
|
+
Requires-Dist: datasets
|
|
15
|
+
Requires-Dist: exrex
|
|
16
|
+
Requires-Dist: magicattr
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: numpy
|
|
19
|
+
Requires-Dist: scipy
|
|
20
|
+
Requires-Dist: sorcery
|
|
12
21
|
|
|
13
22
|
## tasksource  500+ curated datasets and preprocessings for instant and interchangeable use
|
|
14
23
|
|
|
@@ -29,7 +38,12 @@ for id in df[df.task_type=="MultipleChoice"].id:
|
|
|
29
38
|
|
|
30
39
|
Browse the 500+ curated tasks in tasks.md (200+ MultipleChoice tasks, 200+ Classification tasks), and feel free to request a new task. Datasets are downloaded to $HF_DATASETS_CACHE (like any Hugging Face dataset), so ensure you have more than 100GB of space available.
|
|
31
40
|
|
|
32
|
-
|
|
41
|
+
You can now also use:
|
|
42
|
+
```python
|
|
43
|
+
load_dataset("tasksource/data", "glue/rte",max_rows=30_000)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Pretrained models:
|
|
33
47
|
|
|
34
48
|
Text encoder pretrained on tasksource reached state-of-the-art results: [🤗/deberta-v3-base-tasksource-nli](https://hf.co/sileod/deberta-v3-base-tasksource-nli)
|
|
35
49
|
|
|
@@ -17,7 +17,12 @@ for id in df[df.task_type=="MultipleChoice"].id:
|
|
|
17
17
|
|
|
18
18
|
Browse the 500+ curated tasks in tasks.md (200+ MultipleChoice tasks, 200+ Classification tasks), and feel free to request a new task. Datasets are downloaded to $HF_DATASETS_CACHE (like any Hugging Face dataset), so ensure you have more than 100GB of space available.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
You can now also use:
|
|
21
|
+
```python
|
|
22
|
+
load_dataset("tasksource/data", "glue/rte",max_rows=30_000)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Pretrained models:
|
|
21
26
|
|
|
22
27
|
Text encoder pretrained on tasksource reached state-of-the-art results: [🤗/deberta-v3-base-tasksource-nli](https://hf.co/sileod/deberta-v3-base-tasksource-nli)
|
|
23
28
|
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
WANLI
|
|
2
|
+
recast/recast_verbnet
|
|
3
|
+
recast/recast_verbcorner
|
|
4
|
+
recast/recast_ner
|
|
5
|
+
recast/recast_sentiment
|
|
6
|
+
recast/recast_puns
|
|
7
|
+
recast/recast_factuality
|
|
8
|
+
recast/recast_megaveridicality
|
|
9
|
+
probability_words_nli/reasoning_1hop
|
|
10
|
+
probability_words_nli/usnli
|
|
11
|
+
probability_words_nli/reasoning_2hop
|
|
12
|
+
nan-nli/joey234--nan-nli
|
|
13
|
+
nli_fever
|
|
14
|
+
breaking_nli
|
|
15
|
+
conj_nli
|
|
16
|
+
fracas
|
|
17
|
+
dialogue_nli
|
|
18
|
+
mpe
|
|
19
|
+
dnc
|
|
20
|
+
recast_white/fnplus
|
|
21
|
+
recast_white/sprl
|
|
22
|
+
recast_white/dpr
|
|
23
|
+
robust_nli/IS_CS
|
|
24
|
+
robust_nli/LI_LI
|
|
25
|
+
robust_nli/ST_WO
|
|
26
|
+
robust_nli/PI_SP
|
|
27
|
+
robust_nli/PI_CD
|
|
28
|
+
robust_nli/ST_SE
|
|
29
|
+
robust_nli/ST_NE
|
|
30
|
+
robust_nli/ST_LM
|
|
31
|
+
robust_nli_is_sd
|
|
32
|
+
robust_nli_li_ts
|
|
33
|
+
gen_debiased_nli/snli_seq_z
|
|
34
|
+
gen_debiased_nli/snli_z_aug
|
|
35
|
+
gen_debiased_nli/snli_par_z
|
|
36
|
+
gen_debiased_nli/mnli_par_z
|
|
37
|
+
gen_debiased_nli/mnli_z_aug
|
|
38
|
+
gen_debiased_nli/mnli_seq_z
|
|
39
|
+
add_one_rte
|
|
40
|
+
hlgd
|
|
41
|
+
conll2003/pos_tags
|
|
42
|
+
conll2003/chunk_tags
|
|
43
|
+
conll2003/ner_tags
|
|
44
|
+
hh-rlhf
|
|
45
|
+
model-written-evals
|
|
46
|
+
fig-qa
|
|
47
|
+
social_i_qa
|
|
48
|
+
balanced-copa
|
|
49
|
+
e-CARE
|
|
50
|
+
insincere-questions
|
|
51
|
+
TuringBench
|
|
52
|
+
vitaminc/tals--vitaminc
|
|
53
|
+
rumoureval_2019/RumourEval2019
|
|
54
|
+
tweet_eval/irony
|
|
55
|
+
tweet_eval/stance_abortion
|
|
56
|
+
tweet_eval/hate
|
|
57
|
+
tweet_eval/stance_atheism
|
|
58
|
+
tweet_eval/stance_climate
|
|
59
|
+
tweet_eval/emoji
|
|
60
|
+
tweet_eval/offensive
|
|
61
|
+
tweet_eval/sentiment
|
|
62
|
+
tweet_eval/emotion
|
|
63
|
+
tweet_eval/stance_feminist
|
|
64
|
+
tweet_eval/stance_hillary
|
|
65
|
+
discovery/discovery
|
|
66
|
+
pragmeval/verifiability
|
|
67
|
+
pragmeval/mrda
|
|
68
|
+
pragmeval/switchboard
|
|
69
|
+
pragmeval/emergent
|
|
70
|
+
pragmeval/gum
|
|
71
|
+
pragmeval/sarcasm
|
|
72
|
+
pragmeval/stac
|
|
73
|
+
pragmeval/pdtb
|
|
74
|
+
silicone/dyda_e
|
|
75
|
+
silicone/oasis
|
|
76
|
+
silicone/meld_s
|
|
77
|
+
silicone/meld_e
|
|
78
|
+
silicone/maptask
|
|
79
|
+
silicone/dyda_da
|
|
80
|
+
silicone/sem
|
|
81
|
+
silicone/iemocap
|
|
82
|
+
lex_glue/scotus
|
|
83
|
+
lex_glue/ledgar
|
|
84
|
+
language-identification
|
|
85
|
+
rotten_tomatoes
|
|
86
|
+
hate_speech18
|
|
87
|
+
sms_spam
|
|
88
|
+
snips_built_in_intents
|
|
89
|
+
hate_speech_offensive
|
|
90
|
+
hyperpartisan_news
|
|
91
|
+
sciie
|
|
92
|
+
citation_intent
|
|
93
|
+
scicite
|
|
94
|
+
lexical_relation_classification/ROOT09
|
|
95
|
+
lexical_relation_classification/CogALexV
|
|
96
|
+
lexical_relation_classification/K&H+N
|
|
97
|
+
lexical_relation_classification/BLESS
|
|
98
|
+
lexical_relation_classification/EVALution
|
|
99
|
+
crowdflower/political-media-bias
|
|
100
|
+
crowdflower/tweet_global_warming
|
|
101
|
+
crowdflower/text_emotion
|
|
102
|
+
crowdflower/political-media-message
|
|
103
|
+
crowdflower/political-media-audience
|
|
104
|
+
crowdflower/economic-news
|
|
105
|
+
crowdflower/corporate-messaging
|
|
106
|
+
crowdflower/airline-sentiment
|
|
107
|
+
crowdflower/sentiment_nuclear_power
|
|
108
|
+
ethics/commonsense
|
|
109
|
+
ethics/deontology
|
|
110
|
+
ethics/justice
|
|
111
|
+
ethics/virtue
|
|
112
|
+
tweets_hate_speech_detection
|
|
113
|
+
wnut_17/wnut_17
|
|
114
|
+
ncbi_disease/ncbi_disease
|
|
115
|
+
acronym_identification
|
|
116
|
+
jnlpba/jnlpba
|
|
117
|
+
ontonotes_english/SpeedOfMagic--ontonotes_english
|
|
118
|
+
blog_authorship_corpus/gender
|
|
119
|
+
blog_authorship_corpus/horoscope
|
|
120
|
+
blog_authorship_corpus/job
|
|
121
|
+
open_question_type
|
|
122
|
+
mc_taco
|
|
123
|
+
discosense
|
|
124
|
+
EffectiveFeedbackStudentWriting
|
|
125
|
+
phrase_similarity
|
|
126
|
+
scientific-exaggeration-detection
|
|
127
|
+
fever-evidence-related/mwong--fever-related
|
|
128
|
+
dynasent/dynabench.dynasent.r1.all/r1
|
|
129
|
+
dynasent/dynabench.dynasent.r2.all/r2
|
|
130
|
+
sem_eval_2010_task_8
|
|
131
|
+
medmcqa
|
|
132
|
+
logiqa
|
|
133
|
+
cycic_classification
|
|
134
|
+
cycic_multiplechoice
|
|
135
|
+
commonsense_qa_2.0
|
|
136
|
+
lingnli
|
|
137
|
+
monotonicity-entailment
|
|
138
|
+
arct
|
|
139
|
+
scinli
|
|
140
|
+
naturallogic
|
|
141
|
+
onestop_qa
|
|
142
|
+
moral_stories/full
|
|
143
|
+
prost
|
|
144
|
+
dynahate
|
|
145
|
+
syntactic-augmentation-nli
|
|
146
|
+
autotnli
|
|
147
|
+
CONDAQA
|
|
148
|
+
webgpt_comparisons
|
|
149
|
+
synthetic-instruct-gptj-pairwise
|
|
150
|
+
scruples
|
|
151
|
+
wouldyourather
|
|
152
|
+
attempto-nli
|
|
153
|
+
defeasible-nli/snli
|
|
154
|
+
defeasible-nli/atomic
|
|
155
|
+
help-nli
|
|
156
|
+
nli-veridicality-transitivity
|
|
157
|
+
natural-language-satisfiability
|
|
158
|
+
lonli
|
|
159
|
+
dadc-limit-nli
|
|
160
|
+
FLUTE
|
|
161
|
+
summarize_from_feedback/comparisons
|
|
162
|
+
folio
|
|
163
|
+
tomi-nli
|
|
164
|
+
avicenna
|
|
165
|
+
SHP
|
|
166
|
+
MedQA-USMLE-4-options-hf
|
|
167
|
+
wikimedqa/medwiki
|
|
168
|
+
cicero
|
|
169
|
+
mutual
|
|
170
|
+
NeQA
|
|
171
|
+
quote-repetition
|
|
172
|
+
redefine-math
|
|
173
|
+
puzzte
|
|
174
|
+
implicatures
|
|
175
|
+
race-c
|
|
176
|
+
spartqa-yn
|
|
177
|
+
spartqa-mchoice
|
|
178
|
+
temporal-nli
|
|
179
|
+
riddle_sense
|
|
180
|
+
clcd-english
|
|
181
|
+
twentyquestions
|
|
182
|
+
reclor
|
|
183
|
+
counterfactually-augmented-imdb
|
|
184
|
+
counterfactually-augmented-snli
|
|
185
|
+
cnli
|
|
186
|
+
boolq-natural-perturbations
|
|
187
|
+
equate
|
|
188
|
+
ScienceQA_text_only
|
|
189
|
+
ekar_english
|
|
190
|
+
implicit-hate-stg1
|
|
191
|
+
logiqa-2.0-nli
|
|
192
|
+
PARARULE-Plus
|
|
193
|
+
mindgames
|
|
194
|
+
universal_dependencies/en_partut/deprel
|
|
195
|
+
universal_dependencies/en_lines/deprel
|
|
196
|
+
universal_dependencies/en_gum/deprel
|
|
197
|
+
universal_dependencies/en_ewt/deprel
|
|
198
|
+
ambient
|
|
199
|
+
path-naturalness-prediction
|
|
200
|
+
cloth
|
|
201
|
+
dgen
|
|
202
|
+
oasst1_pairwise_rlhf_reward
|
|
203
|
+
I2D2
|
|
204
|
+
args_me
|
|
205
|
+
Touche23-ValueEval
|
|
206
|
+
starcon
|
|
207
|
+
banking77
|
|
208
|
+
ruletaker
|
|
209
|
+
lsat_qa/all
|
|
210
|
+
ConTRoL-nli
|
|
211
|
+
tracie
|
|
212
|
+
sherliic
|
|
213
|
+
sen-making/1
|
|
214
|
+
sen-making/2
|
|
215
|
+
mbib-base/cognitive-bias
|
|
216
|
+
mbib-base/fake-news
|
|
217
|
+
mbib-base/gender-bias
|
|
218
|
+
mbib-base/hate-speech
|
|
219
|
+
mbib-base/linguistic-bias
|
|
220
|
+
mbib-base/political-bias
|
|
221
|
+
mbib-base/racial-bias
|
|
222
|
+
mbib-base/text-level-bias
|
|
223
|
+
robustLR
|
|
224
|
+
v1/gen_train234_test2to10
|
|
225
|
+
logical-fallacy
|
|
226
|
+
parade
|
|
227
|
+
cladder
|
|
228
|
+
subjectivity
|
|
229
|
+
MOH
|
|
230
|
+
VUAC
|
|
231
|
+
TroFi
|
|
232
|
+
sharc_modified/mod
|
|
233
|
+
conceptrules_v2
|
|
234
|
+
disrpt/eng.dep.scidtb
|
|
235
|
+
conll2000
|
|
236
|
+
few-nerd/supervised
|
|
237
|
+
com2sense
|
|
238
|
+
scone
|
|
239
|
+
winodict
|
|
240
|
+
fool-me-twice
|
|
241
|
+
monli
|
|
242
|
+
corr2cause
|
|
243
|
+
apt
|
|
244
|
+
twitter-financial-news-sentiment
|
|
245
|
+
SpaceNLI
|
|
246
|
+
propsegment/nli
|
|
247
|
+
HatemojiBuild
|
|
248
|
+
regset
|
|
249
|
+
esci
|
|
250
|
+
dnd_style_intents
|
|
@@ -3,8 +3,8 @@ from datasets import DatasetDict, Dataset
|
|
|
3
3
|
from sorcery import dict_of
|
|
4
4
|
import string
|
|
5
5
|
|
|
6
|
-
improper_labels =
|
|
7
|
-
improper_labels += ['glue/stsb', 'sick/relatedness', 'joci', 'utilitarianism', 'amazon_counterfactual/en', 'toxic_conversations', 'ethos/multilabel', 'lex_glue/eurlex',
|
|
6
|
+
improper_labels =['recast/recast_kg_relations','linguisticprobing',"lex_glue/scotus","pragmeval/squinky","pragmeval/emobank",'pragmeval/persuasiveness']
|
|
7
|
+
improper_labels += ['glue/stsb', 'sick/relatedness', 'joci', 'utilitarianism', 'amazon_counterfactual/en', 'toxic_conversations', 'ethos/multilabel', 'lex_glue/eurlex', 'lex_glue/unfair_tos', 'app_reviews', 'humicroedit/subtask-1', 'stackoverflow-questions', 'go_emotions/simplified', 'google_wellformed_query', 'has_part', 'blog_authorship_corpus/age', 'promptCoherence', 'Sarcasm_News_Headline', 'auditor_review/demo-org--auditor_review', 'Dynasent_Disagreement', 'Politeness_Disagreement', 'SBIC_Disagreement', 'SChem_Disagreement', 'Dilemmas_Disagreement', 'sts-companion', 'acceptability-prediction', 'chaos-mnli-ambiguity', 'headline_cause/en_simple', 'oasst1_dense_flat', 'civil_comments']
|
|
8
8
|
improper_labels += ['stsb_multi_mt','MLMA_hate_speech','icl-symbol-tuning-instruct']
|
|
9
9
|
|
|
10
10
|
def render_options(options):
|
|
@@ -394,7 +394,25 @@ ethos___multilabel = Classification(
|
|
|
394
394
|
splits=["train", None, None]
|
|
395
395
|
)
|
|
396
396
|
|
|
397
|
-
tweet_eval = Classification(sentence1="text", labels="label",
|
|
397
|
+
tweet_eval = Classification(sentence1="text", labels="label",
|
|
398
|
+
config_name=["emoji", "emotion", "hate", "irony", "offensive", "sentiment"])
|
|
399
|
+
|
|
400
|
+
def stance_kwargs(topic):
|
|
401
|
+
return {
|
|
402
|
+
"sentence1": constant(f'Topic: {topic}. \n Opinion:\n'),
|
|
403
|
+
"sentence2": "text",
|
|
404
|
+
"labels": "label",
|
|
405
|
+
"config_name": f"stance_{topic.lower()}",
|
|
406
|
+
"dataset_name": "tweet_eval"
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
tweet_eval_abortion = Classification(**stance_kwargs("abortion"))
|
|
410
|
+
tweet_eval_atheism = Classification(**stance_kwargs("atheism"))
|
|
411
|
+
tweet_eval_climate = Classification(**stance_kwargs("climate"))
|
|
412
|
+
tweet_eval_feminist = Classification(**stance_kwargs("feminist"))
|
|
413
|
+
tweet_eval_hillary = Classification(**stance_kwargs("Hillary"))
|
|
414
|
+
|
|
415
|
+
|
|
398
416
|
|
|
399
417
|
discovery = Classification("sentence1", "sentence2", labels="label", config_name=["discovery"])
|
|
400
418
|
|
|
@@ -489,7 +507,7 @@ go_emotions___simplified = Classification(sentence1="text", labels="labels")
|
|
|
489
507
|
#ecthr_cases___violation_prediction = Classification(labels="labels", dataset_name="ecthr_cases", config_name="violation-prediction")
|
|
490
508
|
# too long
|
|
491
509
|
|
|
492
|
-
scicite = Classification(sentence1="string", labels="label")
|
|
510
|
+
scicite = Classification(sentence1="string", labels="label",dataset_name="allenai/scicite")
|
|
493
511
|
|
|
494
512
|
liar = Classification(sentence1="statement", labels="label")
|
|
495
513
|
|
|
@@ -557,7 +575,7 @@ SpeedOfMagic_ontonotes_english = TokenClassification(tokens="tokens", labels="ne
|
|
|
557
575
|
|
|
558
576
|
blog_authorship_corpus__gender = Classification(sentence1="text",labels="gender")
|
|
559
577
|
blog_authorship_corpus__age = Classification(sentence1="text",labels="age")
|
|
560
|
-
blog_authorship_corpus__horoscope = Classification(sentence1="text",labels="horoscope")
|
|
578
|
+
#blog_authorship_corpus__horoscope = Classification(sentence1="text",labels="horoscope")
|
|
561
579
|
blog_authorship_corpus__job = Classification(sentence1="text",labels="job")
|
|
562
580
|
|
|
563
581
|
launch_open_question_type = Classification(sentence1="question", labels="resolve_type", dataset_name="launch/open_question_type")
|
|
@@ -596,7 +614,9 @@ circa = Classification(
|
|
|
596
614
|
# constant(""), choices=["buggy","fixed"], labels=constant(0),
|
|
597
615
|
# config_name="medium")
|
|
598
616
|
|
|
599
|
-
effective_feedback_student_writing = Classification("discourse_text",
|
|
617
|
+
#effective_feedback_student_writing = Classification("discourse_text",
|
|
618
|
+
#labels="discourse_effectiveness",dataset_name="YaHi/EffectiveFeedbackStudentWriting")
|
|
619
|
+
# discontinued /!\
|
|
600
620
|
|
|
601
621
|
#promptSentiment = Classification("text",labels="label",dataset_name="Ericwang/promptSentiment")
|
|
602
622
|
#promptNLI = Classification("premise","hypothesis",labels="label",dataset_name="Ericwang/promptNLI")
|
|
@@ -988,7 +1008,7 @@ sharc_classification = Classification("snippet", lambda x:f'{x["scenario"]}\n{x[
|
|
|
988
1008
|
|
|
989
1009
|
conceptrules_v2 = Classification("context", "text", "label", dataset_name="tasksource/conceptrules_v2")
|
|
990
1010
|
|
|
991
|
-
scidtb = Classification("unit1_txt","unit2_txt","label", dataset_name="metaeval/disrpt",config_name='eng.dep.scidtb')
|
|
1011
|
+
scidtb = Classification("unit1_txt","unit2_txt","label", dataset_name="metaeval/disrpt",config_name='eng.dep.scidtb.rels')
|
|
992
1012
|
|
|
993
1013
|
chunking = TokenClassification("tokens","chunk_tags", dataset_name="conll2000")
|
|
994
1014
|
|
|
@@ -1017,7 +1037,8 @@ apt = Classification('text_a','text_b',name('labels',['not_paraphrase','paraphra
|
|
|
1017
1037
|
|
|
1018
1038
|
#xsum_factuality = Classification("summary",labels="is_factual")
|
|
1019
1039
|
|
|
1020
|
-
financial_sentiment = Classification("text",labels=
|
|
1040
|
+
financial_sentiment = Classification("text",labels=name('label',['Bearish','Bullish','Neutral']),
|
|
1041
|
+
dataset_name="zeroshot/twitter-financial-news-sentiment")
|
|
1021
1042
|
|
|
1022
1043
|
def _icl_rand(x):
|
|
1023
1044
|
import random
|
|
@@ -1064,4 +1085,22 @@ chatbot_arena = MultipleChoice(constant(""),
|
|
|
1064
1085
|
pre_process=_preprocess_chatbot_arena)
|
|
1065
1086
|
|
|
1066
1087
|
dnd_intent = Classification("examples",labels="label_names",
|
|
1067
|
-
dataset_name='neurae/dnd_style_intents')
|
|
1088
|
+
dataset_name='neurae/dnd_style_intents')
|
|
1089
|
+
|
|
1090
|
+
fld = Classification("context","hypothesis", "proof_label",
|
|
1091
|
+
dataset_name="hitachi-nlp/FLD.v2")
|
|
1092
|
+
|
|
1093
|
+
sdoh_nli = Classification("premise","hypothesis",labels=lambda x:{True:"entailment",False:"not-entailment"}[x['label']],
|
|
1094
|
+
dataset_name="tasksource/SDOH-NLI")
|
|
1095
|
+
|
|
1096
|
+
scifact_entailment = Classification(lambda x:"\n".join(x["abstract"]),"claim",
|
|
1097
|
+
labels=lambda x:x['verdict'].replace('NEI','NEUTRAL'),
|
|
1098
|
+
dataset_name="allenai/scifact_entailment")
|
|
1099
|
+
|
|
1100
|
+
feasibilityQA = Classification(cat(['knowledge','premise']),'hypothesis','binary_classification_label',
|
|
1101
|
+
dataset_name="tasksource/feasibilityQA")
|
|
1102
|
+
|
|
1103
|
+
simple_pair = Classification("premise","hypothesis","label", dataset_name="tasksource/simple_pair")
|
|
1104
|
+
adjective_scale_probe = Classification("premise","hypothesis","label", dataset_name="tasksource/AdjectiveScaleProbe-nli")
|
|
1105
|
+
repectively_nli = Classification("premise","hypothesis","label",dataset_name="tasksource/resnli")
|
|
1106
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tasksource
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.41
|
|
4
4
|
Summary: Preprocessings to prepare datasets for a task
|
|
5
5
|
Home-page: https://github.com/sileod/tasksource/
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -9,6 +9,15 @@ Classifier: Intended Audience :: Developers
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: dotwiz
|
|
13
|
+
Requires-Dist: funcy
|
|
14
|
+
Requires-Dist: datasets
|
|
15
|
+
Requires-Dist: exrex
|
|
16
|
+
Requires-Dist: magicattr
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: numpy
|
|
19
|
+
Requires-Dist: scipy
|
|
20
|
+
Requires-Dist: sorcery
|
|
12
21
|
|
|
13
22
|
## tasksource  500+ curated datasets and preprocessings for instant and interchangeable use
|
|
14
23
|
|
|
@@ -29,7 +38,12 @@ for id in df[df.task_type=="MultipleChoice"].id:
|
|
|
29
38
|
|
|
30
39
|
Browse the 500+ curated tasks in tasks.md (200+ MultipleChoice tasks, 200+ Classification tasks), and feel free to request a new task. Datasets are downloaded to $HF_DATASETS_CACHE (like any Hugging Face dataset), so ensure you have more than 100GB of space available.
|
|
31
40
|
|
|
32
|
-
|
|
41
|
+
You can now also use:
|
|
42
|
+
```python
|
|
43
|
+
load_dataset("tasksource/data", "glue/rte",max_rows=30_000)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Pretrained models:
|
|
33
47
|
|
|
34
48
|
Text encoder pretrained on tasksource reached state-of-the-art results: [🤗/deberta-v3-base-tasksource-nli](https://hf.co/sileod/deberta-v3-base-tasksource-nli)
|
|
35
49
|
|