tasksource 0.0.43__tar.gz → 0.0.45__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.43 → tasksource-0.0.45}/PKG-INFO +1 -1
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/.ipynb_checkpoints/tasks-checkpoint.py +92 -52
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/tasks.py +92 -52
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource.egg-info/PKG-INFO +1 -1
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource.egg-info/SOURCES.txt +0 -2
- tasksource-0.0.45/tasks.md +660 -0
- tasksource-0.0.43/src/tasksource/.ipynb_checkpoints/preprocess-checkpoint.py +0 -267
- tasksource-0.0.43/src/tasksource/.ipynb_checkpoints/recast-checkpoint.py +0 -113
- tasksource-0.0.43/tasks.md +0 -643
- {tasksource-0.0.43 → tasksource-0.0.45}/.github/scripts/release.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/.github/workflows/python-publish.yml +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/.github/workflows/release.yml +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/.gitignore +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/CITATION.cff +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/LICENSE +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/README.md +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/mtasks.md +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/pyproject.toml +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/setup.cfg +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/__init__.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/access.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/metadata/__init__.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/metadata/bigbench_groups.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/metadata/blimp_groups.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/metadata/original.txt +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/metadata/popularity.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/mtasks.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/preprocess.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/recast.py +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource.egg-info/dependency_links.txt +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource.egg-info/requires.txt +0 -0
- {tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource.egg-info/top_level.txt +0 -0
{tasksource-0.0.43 → tasksource-0.0.45}/src/tasksource/.ipynb_checkpoints/tasks-checkpoint.py
RENAMED
|
@@ -38,8 +38,8 @@ anli__a3 = Classification('premise','hypothesis','label', splits=['train_r3','de
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
babi_nli = Classification("premise", "hypothesis", "label",
|
|
41
|
-
dataset_name="
|
|
42
|
-
config_name=set(get_dataset_config_names("
|
|
41
|
+
dataset_name="tasksource/babi_nli",
|
|
42
|
+
config_name=set(get_dataset_config_names("tasksource/babi_nli"))-{"agents-motivations"}
|
|
43
43
|
) # agents-motivations task is not as clear-cut as the others
|
|
44
44
|
|
|
45
45
|
|
|
@@ -60,7 +60,7 @@ hans = Classification(sentence1="premise", sentence2="hypothesis", labels="label
|
|
|
60
60
|
|
|
61
61
|
wanli = Classification('premise','hypothesis','gold', dataset_name="alisawuffles/WANLI")
|
|
62
62
|
|
|
63
|
-
recast_nli = Classification(sentence1="context", sentence2="hypothesis", labels="label", dataset_name="
|
|
63
|
+
recast_nli = Classification(sentence1="context", sentence2="hypothesis", labels="label", dataset_name="tasksource/recast",
|
|
64
64
|
config_name=['recast_kg_relations', 'recast_puns', 'recast_factuality', 'recast_verbnet',
|
|
65
65
|
'recast_verbcorner', 'recast_ner', 'recast_sentiment', 'recast_megaveridicality'])
|
|
66
66
|
|
|
@@ -153,15 +153,15 @@ def _imppres_post_process(ds,prefix=''):
|
|
|
153
153
|
names=[f'{prefix}_entailment',f'{prefix}_neutral',f'{prefix}_contradiction']))
|
|
154
154
|
|
|
155
155
|
imppres__presupposition = imppres__prag = Classification("premise","hypothesis","gold_label",
|
|
156
|
-
dataset_name="
|
|
156
|
+
dataset_name="tasksource/imppres", config_name=imppres_presupposition,
|
|
157
157
|
post_process=_imppres_post_process)
|
|
158
158
|
|
|
159
159
|
imppres__prag = Classification("premise","hypothesis","gold_label_prag",
|
|
160
|
-
dataset_name="
|
|
160
|
+
dataset_name="tasksource/imppres", config_name=imppres_implicature,
|
|
161
161
|
post_process=lambda x: _imppres_post_process(x,'pragmatic'))
|
|
162
162
|
|
|
163
163
|
imppres__log = Classification("premise","hypothesis","gold_label_log",
|
|
164
|
-
dataset_name="
|
|
164
|
+
dataset_name="tasksource/imppres", config_name=imppres_implicature,
|
|
165
165
|
post_process=lambda x: _imppres_post_process(x,'logical'))
|
|
166
166
|
|
|
167
167
|
|
|
@@ -212,6 +212,7 @@ bigbench = MultipleChoice(
|
|
|
212
212
|
dataset_name='tasksource/bigbench',
|
|
213
213
|
config_name=bigbench_discriminative_english - {"social_i_qa","intersect_geometry"} # english multiple choice tasks, minus duplicates
|
|
214
214
|
)
|
|
215
|
+
#"goal_step_wikihow"
|
|
215
216
|
|
|
216
217
|
blimp_hard = MultipleChoice(inputs=constant(''),
|
|
217
218
|
choices=['sentence_good','sentence_bad'],
|
|
@@ -426,8 +427,6 @@ silicone = Classification("Utterance",labels="Label",
|
|
|
426
427
|
config_name=['dyda_da', 'dyda_e', 'iemocap', 'maptask', 'meld_e', 'meld_s', 'oasis', 'sem'] # +['swda', 'mrda'] # in pragmeval
|
|
427
428
|
)
|
|
428
429
|
|
|
429
|
-
#lex_glue___ecthr_a = Classification(sentence1="text", labels="labels") # too long
|
|
430
|
-
#lex_glue___ecthr_b = Classification(sentence1="text", labels="labels") # too long
|
|
431
430
|
lex_glue___eurlex = Classification(sentence1="text", labels="labels")
|
|
432
431
|
lex_glue___scotus = Classification(sentence1="text", labels="label")
|
|
433
432
|
lex_glue___ledgar = Classification(sentence1="text", labels="label")
|
|
@@ -508,7 +507,7 @@ relbert_lexical_relation_classification = Classification(sentence1="head", sente
|
|
|
508
507
|
config_name=["BLESS","CogALexV","EVALution","K&H+N","ROOT09"])
|
|
509
508
|
|
|
510
509
|
|
|
511
|
-
|
|
510
|
+
linguisticprobing = Classification("sentence", labels="label", dataset_name="tasksource/linguisticprobing",
|
|
512
511
|
config_name=['subj_number',
|
|
513
512
|
'obj_number',
|
|
514
513
|
'past_present',
|
|
@@ -677,9 +676,9 @@ logiqa = MultipleChoice(
|
|
|
677
676
|
wiki_qa = Classification("question","answer", name("label",['False','True']))
|
|
678
677
|
|
|
679
678
|
cycic_classification = Classification("question",labels=name("correct_answer",['False','True']),
|
|
680
|
-
dataset_name = "
|
|
679
|
+
dataset_name = "tasksource/cycic_classification")
|
|
681
680
|
cycic_mc = MultipleChoice("question", choices=regen('answer\_option[0-4]'), labels="correct_answer",
|
|
682
|
-
dataset_name = "
|
|
681
|
+
dataset_name = "tasksource/cycic_multiplechoice")
|
|
683
682
|
|
|
684
683
|
|
|
685
684
|
def _preprocess_chatgpt_detection(ex):
|
|
@@ -694,24 +693,24 @@ def _preprocess_chatgpt_detection(ex):
|
|
|
694
693
|
# pre_process=lambda dataset:dataset.map(_preprocess_chatgpt_detection))
|
|
695
694
|
|
|
696
695
|
sts_companion = Classification("sentence1","sentence2","label",
|
|
697
|
-
dataset_name="
|
|
696
|
+
dataset_name="tasksource/sts-companion")
|
|
698
697
|
|
|
699
698
|
commonsense_qa_2 = Classification("question",labels="answer",
|
|
700
|
-
dataset_name="
|
|
699
|
+
dataset_name="tasksource/commonsense_qa_2.0")
|
|
701
700
|
|
|
702
|
-
ling_nli = Classification("premise","hypothesis","label",dataset_name="
|
|
701
|
+
ling_nli = Classification("premise","hypothesis","label",dataset_name="tasksource/lingnli")
|
|
703
702
|
|
|
704
703
|
monotonicity_entailment = Classification("sentence1", "sentence2", "gold_label",
|
|
705
|
-
dataset_name="
|
|
704
|
+
dataset_name="tasksource/monotonicity-entailment")
|
|
706
705
|
|
|
707
706
|
arct = MultipleChoice(cat(["reason","claim"]),choices=["warrant0","warrant1"],
|
|
708
|
-
labels="correctLabelW0orW1", dataset_name="
|
|
707
|
+
labels="correctLabelW0orW1", dataset_name="tasksource/arct")
|
|
709
708
|
|
|
710
709
|
scinli = Classification("sentence1", "sentence2", labels="label",
|
|
711
710
|
post_process=lambda x:x.shuffle(seed=0),
|
|
712
|
-
dataset_name="
|
|
711
|
+
dataset_name="tasksource/scinli")
|
|
713
712
|
|
|
714
|
-
naturallogic = Classification(" sent1 "," sent2 "," new_label ",dataset_name="
|
|
713
|
+
naturallogic = Classification(" sent1 "," sent2 "," new_label ",dataset_name="tasksource/naturallogic")
|
|
715
714
|
|
|
716
715
|
onestop_qa = MultipleChoice(cat(["paragraph","question"]),choices_list="answers",
|
|
717
716
|
labels=constant(0))
|
|
@@ -727,7 +726,7 @@ dyna_hate = Classification("text",labels="label",dataset_name="aps/dynahate",spl
|
|
|
727
726
|
|
|
728
727
|
syntactic_augmentation_nli = Classification('sentence1',"sentence2","gold_label",dataset_name="metaeval/syntactic-augmentation-nli")
|
|
729
728
|
|
|
730
|
-
autotnli = Classification("premises", "hypothesis", "label", dataset_name="
|
|
729
|
+
autotnli = Classification("premises", "hypothesis", "label", dataset_name="tasksource/autotnli")
|
|
731
730
|
#equate = Classification("sentence1", "sentence2", "gold_label",dataset_name="metaeval/equate")
|
|
732
731
|
|
|
733
732
|
conqada = Classification("sentence1","sentence2","label",dataset_name="lasha-nlp/CONDAQA",
|
|
@@ -747,9 +746,9 @@ wouldyourather = MultipleChoice(constant('Most people would rather:'), choices=[
|
|
|
747
746
|
labels= lambda x: int(x['votes_a']<x['votes_b']),
|
|
748
747
|
dataset_name="metaeval/wouldyourather")
|
|
749
748
|
|
|
750
|
-
attempto_nli = Classification("premise","hypothesis",
|
|
751
|
-
lambda x:f'race-{x["race_label"]}',
|
|
752
|
-
dataset_name="sileod/attempto-nli")
|
|
749
|
+
#attempto_nli = Classification("premise","hypothesis",
|
|
750
|
+
# lambda x:f'race-{x["race_label"]}',
|
|
751
|
+
# dataset_name="sileod/attempto-nli")
|
|
753
752
|
|
|
754
753
|
defeasible_nli = Classification(cat(["Premise","Hypothesis"]),"Update",labels="UpdateType",
|
|
755
754
|
dataset_name="metaeval/defeasible-nli",config_name=['atomic', 'snli'])
|
|
@@ -758,25 +757,22 @@ defeasible_nli = Classification(cat(["Premise","Hypothesis"]),"Update",labels="U
|
|
|
758
757
|
# dataset_name="metaeval/defeasible-nli",config_name='social')
|
|
759
758
|
|
|
760
759
|
help_nli = Classification("ori_sentence","new_sentence","gold_label",
|
|
761
|
-
dataset_name="
|
|
760
|
+
dataset_name="tasksource/help-nli")
|
|
762
761
|
|
|
763
762
|
nli_veridicality_transitivity = Classification("sentence1","sentence2","gold_label",
|
|
764
763
|
dataset_name="metaeval/nli-veridicality-transitivity")
|
|
765
764
|
|
|
766
|
-
nl_satisfiability= Classification("sentence",labels="label",
|
|
767
|
-
dataset_name="metaeval/natural-language-satisfiability")
|
|
768
|
-
|
|
769
765
|
lonli = Classification("premise","hypothesis","label",
|
|
770
|
-
dataset_name="
|
|
766
|
+
dataset_name="tasksource/lonli")
|
|
771
767
|
|
|
772
768
|
dadc_limit = Classification("sentence1","sentence2","label",
|
|
773
|
-
dataset_name="
|
|
769
|
+
dataset_name="tasksource/dadc-limit-nli")
|
|
774
770
|
|
|
775
771
|
flute = Classification("premise","hypothesis","label",
|
|
776
772
|
dataset_name="ColumbiaNLP/FLUTE")
|
|
777
773
|
|
|
778
774
|
strategy_qa = Classification('question',labels='answer',
|
|
779
|
-
dataset_name="
|
|
775
|
+
dataset_name="tasksource/strategy-qa",splits=['train',None,None])
|
|
780
776
|
|
|
781
777
|
summarize_from_feedback = MultipleChoice(get.info.post,
|
|
782
778
|
choices_list=lambda x: [x['summaries'][0]['text'],x['summaries'][1]['text']],
|
|
@@ -790,10 +786,10 @@ folio = Classification("premises","conclusion",
|
|
|
790
786
|
dataset_name="tasksource/folio")
|
|
791
787
|
|
|
792
788
|
tomi_nli = Classification("premise","hypothesis","label",
|
|
793
|
-
dataset_name="
|
|
789
|
+
dataset_name="tasksource/tomi-nli")
|
|
794
790
|
|
|
795
791
|
avicenna = Classification("Premise 1","Premise 2","Syllogistic relation",
|
|
796
|
-
dataset_name="
|
|
792
|
+
dataset_name="tasksource/avicenna")
|
|
797
793
|
|
|
798
794
|
shp = MultipleChoice("history",
|
|
799
795
|
choices=['human_ref_A','human_ref_B'],
|
|
@@ -816,7 +812,7 @@ creak = Classification("sentence",labels="label",
|
|
|
816
812
|
|
|
817
813
|
mutual = MultipleChoice("article",choices_list="options",
|
|
818
814
|
labels=lambda x: "ABCD".index(x['answers']),
|
|
819
|
-
dataset_name="
|
|
815
|
+
dataset_name="tasksource/mutual",splits=["train",None,None])
|
|
820
816
|
|
|
821
817
|
neqa = MultipleChoice('prompt',choices_list='classes',labels="answer_index",
|
|
822
818
|
dataset_name="inverse-scaling/NeQA")
|
|
@@ -826,35 +822,35 @@ redefine_math = MultipleChoice('prompt',choices_list='classes',labels="answer_in
|
|
|
826
822
|
dataset_name="inverse-scaling/redefine-math")
|
|
827
823
|
|
|
828
824
|
puzzte = Classification("puzzle_text","question","answer",
|
|
829
|
-
dataset_name="
|
|
825
|
+
dataset_name="tasksource/puzzte")
|
|
830
826
|
|
|
831
827
|
implicatures = MultipleChoice(cat(['context','response'],"\n"),
|
|
832
828
|
choices=['correct_implicature','incorrect_implicature'],
|
|
833
829
|
labels=constant(0),
|
|
834
|
-
dataset_name='
|
|
830
|
+
dataset_name='tasksource/implicatures')
|
|
835
831
|
|
|
836
832
|
race = MultipleChoice(cat(['question','article'],'\n'), choices_list='options',
|
|
837
833
|
labels=lambda x:'ABCDE'.index(x['answer']),
|
|
838
834
|
config_name=['middle','high'])
|
|
839
835
|
|
|
840
836
|
race_c = MultipleChoice(cat(['question','article'],'\n'),choices_list='option',labels='label',
|
|
841
|
-
dataset_name='
|
|
837
|
+
dataset_name='tasksource/race-c')
|
|
842
838
|
|
|
843
839
|
spartqa_yn=Classification("story","question","answer",
|
|
844
|
-
dataset_name="
|
|
840
|
+
dataset_name="tasksource/spartqa-yn")
|
|
845
841
|
|
|
846
842
|
spartqa_mc=MultipleChoice(cat(["story","question"]),choices_list="candidate_answers",labels="answer",
|
|
847
|
-
dataset_name="
|
|
843
|
+
dataset_name="tasksource/spartqa-mchoice")
|
|
848
844
|
|
|
849
845
|
temporal_nli = Classification("Premise","Hypothesis","Label",
|
|
850
|
-
dataset_name="
|
|
846
|
+
dataset_name="tasksource/temporal-nli")
|
|
851
847
|
|
|
852
848
|
riddle_sense = MultipleChoice("question", choices_list=get.choices.text,
|
|
853
849
|
labels=lambda x : "ABCDE".index(x['answerKey']))
|
|
854
850
|
|
|
855
851
|
clcd = Classification(
|
|
856
852
|
"sentence1","sentence2","label",
|
|
857
|
-
dataset_name="
|
|
853
|
+
dataset_name="tasksource/clcd-english")
|
|
858
854
|
|
|
859
855
|
twentyquestions = Classification("question","subject","answer",dataset_name="maximedb/twentyquestions")
|
|
860
856
|
|
|
@@ -862,16 +858,16 @@ reclor = MultipleChoice(cat(["context","question"]),choices_list="answers",label
|
|
|
862
858
|
dataset_name="metaeval/reclor",splits=['train','validation',None])
|
|
863
859
|
|
|
864
860
|
c_aug_imdb = Classification("Text",labels="Sentiment",
|
|
865
|
-
dataset_name='
|
|
861
|
+
dataset_name='tasksource/counterfactually-augmented-imdb')
|
|
866
862
|
|
|
867
863
|
c_aug_snli = Classification("sentence1","sentence2","gold_label",
|
|
868
|
-
dataset_name='
|
|
864
|
+
dataset_name='tasksource/counterfactually-augmented-snli')
|
|
869
865
|
|
|
870
866
|
cnli = Classification("premise","hypothesis","label",
|
|
871
867
|
dataset_name='metaeval/cnli')
|
|
872
868
|
|
|
873
869
|
perturbed_boolq = Classification("question",labels="hard_label",
|
|
874
|
-
dataset_name='
|
|
870
|
+
dataset_name='tasksource/boolq-natural-perturbations')
|
|
875
871
|
|
|
876
872
|
#mega_acceptability = Classification("sentence",labels="average",
|
|
877
873
|
# dataset_name='metaeval/mega-acceptability-v2')
|
|
@@ -883,14 +879,14 @@ equate = Classification("sentence1","sentence2","gold_label",
|
|
|
883
879
|
dataset_name='metaeval/equate')
|
|
884
880
|
|
|
885
881
|
science_qa = MultipleChoice("question",choices_list="choices",labels="answer",
|
|
886
|
-
dataset_name="
|
|
882
|
+
dataset_name="tasksource/ScienceQA_text_only")
|
|
887
883
|
|
|
888
884
|
ekar=MultipleChoice("question",choices_list=get.choices.text,
|
|
889
885
|
labels=lambda x:"ABCD".index(x['answerKey']),
|
|
890
886
|
dataset_name="Jiangjie/ekar_english")
|
|
891
887
|
|
|
892
888
|
implicit_hate = Classification("post",labels="class",
|
|
893
|
-
dataset_name="
|
|
889
|
+
dataset_name="tasksource/implicit-hate-stg1")
|
|
894
890
|
|
|
895
891
|
nli_unambiguity = Classification("premise","hypothesis","gini",
|
|
896
892
|
dataset_name="metaeval/chaos-mnli-ambiguity")
|
|
@@ -898,7 +894,7 @@ nli_unambiguity = Classification("premise","hypothesis","gini",
|
|
|
898
894
|
headline_cause = Classification('left_title','right_title','label',
|
|
899
895
|
dataset_name='IlyaGusev/headline_cause',config_name='en_simple')
|
|
900
896
|
|
|
901
|
-
logiqa_2 = Classification("premise","hypothesis","label",dataset_name="
|
|
897
|
+
logiqa_2 = Classification("premise","hypothesis","label",dataset_name="tasksource/logiqa-2.0-nli")
|
|
902
898
|
|
|
903
899
|
_oasst = dict(dataset_name="tasksource/oasst2_dense_flat",
|
|
904
900
|
pre_process = lambda ds:ds.filter(lambda x:x['lang']=='en'))
|
|
@@ -907,7 +903,6 @@ oasst1__quality = Classification("parent_text","text",labels="quality",**_oasst)
|
|
|
907
903
|
oasst1__toxicity = Classification("parent_text","text",labels="toxicity",**_oasst)
|
|
908
904
|
oasst1__helpfulness = Classification("parent_text","text",labels="helpfulness",**_oasst)
|
|
909
905
|
|
|
910
|
-
|
|
911
906
|
mindgames = Classification("premise","hypothesis","label",dataset_name="sileod/mindgames")
|
|
912
907
|
|
|
913
908
|
def _udep_post_process(ds):
|
|
@@ -956,6 +951,7 @@ winowhy = Classification('sentence', lambda x: f'In "{x["wnli_sent1"]}", {x["wnl
|
|
|
956
951
|
#for CFG in "cognitive-bias", "fake-news", "gender-bias", "hate-speech", "linguistic-bias", "political-bias", "racial-bias", "text-level-bias":
|
|
957
952
|
# print(f"mbib__{CFG.replace('-','_')} = Classification('text',labels=name('label',['not {CFG}','{CFG}']), dataset_name='mediabiasgroup/mbib-base', config_name='{CFG}')")
|
|
958
953
|
|
|
954
|
+
"""
|
|
959
955
|
mbib_cognitive_bias = Classification('text',labels=name('label',['not cognitive-bias','cognitive-bias']), dataset_name='mediabiasgroup/mbib-base', config_name='cognitive-bias')
|
|
960
956
|
mbib_fake_news = Classification('text',labels=name('label',['not fake-news','fake-news']), dataset_name='mediabiasgroup/mbib-base', config_name='fake-news')
|
|
961
957
|
mbib_gender_bias = Classification('text',labels=name('label',['not gender-bias','gender-bias']), dataset_name='mediabiasgroup/mbib-base', config_name='gender-bias')
|
|
@@ -964,6 +960,7 @@ mbib_linguistic_bias = Classification('text',labels=name('label',['not linguisti
|
|
|
964
960
|
mbib_political_bias = Classification('text',labels=name('label',['not political-bias','political-bias']), dataset_name='mediabiasgroup/mbib-base', config_name='political-bias')
|
|
965
961
|
mbib_racial_bias = Classification('text',labels=name('label',['not racial-bias','racial-bias']), dataset_name='mediabiasgroup/mbib-base', config_name='racial-bias')
|
|
966
962
|
mbib_text_level_bias = Classification('text',labels=name('label',['not text-level-bias','text-level-bias']), dataset_name='mediabiasgroup/mbib-base', config_name='text-level-bias')
|
|
963
|
+
"""
|
|
967
964
|
|
|
968
965
|
robustLR = Classification("context","statement","label", dataset_name="tasksource/robustLR")
|
|
969
966
|
|
|
@@ -1026,7 +1023,7 @@ def _icl_rand(x):
|
|
|
1026
1023
|
icl = Classification("inputs", lambda x: x['symbols'][_icl_rand(x)],
|
|
1027
1024
|
labels=lambda x: str(x['symbols'][_icl_rand(x)]==x['targets']),
|
|
1028
1025
|
dataset_name="tasksource/icl-symbol-tuning-instruct",
|
|
1029
|
-
pre_process=lambda ds:ds.filter(lambda x:len(x['inputs'])<
|
|
1026
|
+
pre_process=lambda ds:ds.filter(lambda x:len(x['inputs'])<500*4), # 500 tokens of 4 char
|
|
1030
1027
|
)
|
|
1031
1028
|
|
|
1032
1029
|
space_nli = Classification("premises","hypothesis","label",dataset_name="tasksource/SpaceNLI")
|
|
@@ -1196,16 +1193,59 @@ ambigNQ = Classification("question",labels=lambda x:{True:"ambiguous", False:"no
|
|
|
1196
1193
|
|
|
1197
1194
|
siga_nli = Classification("premise","statement","label",dataset_name="tasksource/SIGA-nli")
|
|
1198
1195
|
|
|
1199
|
-
|
|
1196
|
+
unigram_fol = Classification("premise","hypothesis","label",dataset_name='unigram/FOL-nli')
|
|
1200
1197
|
|
|
1201
|
-
gs_goal = MultipleChoice("sent2",regen("ending[0-3]"),"label",
|
|
1202
|
-
dataset_name="tasksource/goal-step-wikihow",config_name="goal")
|
|
1198
|
+
#gs_goal = MultipleChoice("sent2",regen("ending[0-3]"),"label",
|
|
1199
|
+
# dataset_name="tasksource/goal-step-wikihow",config_name="goal")
|
|
1203
1200
|
|
|
1204
|
-
gs_step = MultipleChoice("sent2",regen("ending[0-3]"),"label",
|
|
1205
|
-
dataset_name="tasksource/goal-step-wikihow",config_name="step")
|
|
1201
|
+
#gs_step = MultipleChoice("sent2",regen("ending[0-3]"),"label",
|
|
1202
|
+
# dataset_name="tasksource/goal-step-wikihow",config_name="step")
|
|
1206
1203
|
|
|
1207
1204
|
gs_order = MultipleChoice("sent2",regen("ending[0-1]"),"label",
|
|
1208
1205
|
dataset_name="tasksource/goal-step-wikihow",config_name="order")
|
|
1209
1206
|
|
|
1210
1207
|
paradise = MultipleChoice("sent2",regen("ending[0-1]"),"label",
|
|
1211
1208
|
dataset_name="GGLab/PARADISE")
|
|
1209
|
+
|
|
1210
|
+
docnli = Classification("premise","hypothesis","label",dataset_name="tasksource/doc-nli")
|
|
1211
|
+
|
|
1212
|
+
mctest_nli = Classification("premise","hypothesis","label",dataset_name="tasksource/mctest-nli")
|
|
1213
|
+
|
|
1214
|
+
patent_phrase_similarity = Classification("anchor","target","label",dataset_name="tasksource/patent-phrase-similarity")
|
|
1215
|
+
|
|
1216
|
+
nlsat = Classification('sentence',labels='label',dataset_name="tasksource/natural-language-satisfiability")
|
|
1217
|
+
|
|
1218
|
+
idioms_nli = Classification('premise','hypothesis','label',dataset_name="tasksource/idioms-nli")
|
|
1219
|
+
|
|
1220
|
+
lifeycle_entailment = Classification("premise","hypothesis","label",dataset_name='tasksource/lifecycle-entailment')
|
|
1221
|
+
|
|
1222
|
+
helpsteer_2__helpfulness = Classification("prompt","response","helpfulness",dataset_name="nvidia/HelpSteer2")
|
|
1223
|
+
helpsteer_2__correctness = Classification("prompt", "response", "correctness", dataset_name="nvidia/HelpSteer2")
|
|
1224
|
+
helpsteer_2__coherence = Classification("prompt", "response", "coherence", dataset_name="nvidia/HelpSteer2")
|
|
1225
|
+
helpsteer_2__complexity = Classification("prompt", "response", "complexity", dataset_name="nvidia/HelpSteer2")
|
|
1226
|
+
helpsteer_2__verbosity = Classification("prompt", "response", "verbosity", dataset_name="nvidia/HelpSteer2")
|
|
1227
|
+
|
|
1228
|
+
helpsteer__helpfulness = Classification("prompt", "response", "helpfulness", dataset_name="nvidia/HelpSteer")
|
|
1229
|
+
helpsteer__correctness = Classification("prompt", "response", "correctness", dataset_name="nvidia/HelpSteer")
|
|
1230
|
+
helpsteer__coherence = Classification("prompt", "response", "coherence", dataset_name="nvidia/HelpSteer")
|
|
1231
|
+
helpsteer__complexity = Classification("prompt", "response", "complexity", dataset_name="nvidia/HelpSteer")
|
|
1232
|
+
helpsteer__verbosity = Classification("prompt", "response", "verbosity", dataset_name="nvidia/HelpSteer")
|
|
1233
|
+
|
|
1234
|
+
msci_nli = Classification('sentence1','sentence2','label',dataset_name='sadat2307/MSciNLI')
|
|
1235
|
+
|
|
1236
|
+
lex_glue___ecthr_a = Classification(sentence1="text", labels="labels",dataset_name="coastalcph/lex_glue",config_name="ecthr_a") # too long
|
|
1237
|
+
lex_glue___ecthr_b = Classification(sentence1="text", labels="labels") # too long
|
|
1238
|
+
|
|
1239
|
+
ultrafeedback = MultipleChoice("question", choices=['response_j','response_k'],labels=constant(0), dataset_name="pushpdeep/UltraFeedback-paired")
|
|
1240
|
+
|
|
1241
|
+
essay_scoring = Classification("full_text",labels="score",dataset_name='tasksource/AES2-essay-scoring')
|
|
1242
|
+
|
|
1243
|
+
argument_feedback = Classification("discourse_text",labels="discourse_effectiveness", dataset_name="tasksource/argument-feedback")
|
|
1244
|
+
|
|
1245
|
+
eg = lambda x: Classification("full_text", labels=lambda y:int(y[x]), dataset_name="tasksource/english-grading")
|
|
1246
|
+
grading__cohesion = eg('cohesion')
|
|
1247
|
+
grading__syntax = eg('syntax')
|
|
1248
|
+
grading__vocabulary = eg('vocabulary')
|
|
1249
|
+
grading__phraseology = eg('phraseology')
|
|
1250
|
+
grading__grammar = eg('grammar')
|
|
1251
|
+
grading__conventions = eg('conventions')
|