tasksource 0.0.46__tar.gz → 0.0.47__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.46 → tasksource-0.0.47}/PKG-INFO +1 -1
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/access-checkpoint.py +4 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/tasks-checkpoint.py +23 -3
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/access.py +4 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/tasks.py +23 -3
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/PKG-INFO +1 -1
- {tasksource-0.0.46 → tasksource-0.0.47}/tasks.md +292 -287
- {tasksource-0.0.46 → tasksource-0.0.47}/.github/scripts/release.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/.github/workflows/python-publish.yml +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/.github/workflows/release.yml +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/.gitignore +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/CITATION.cff +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/LICENSE +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/README.md +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/mtasks.md +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/pyproject.toml +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/setup.cfg +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/preprocess-checkpoint.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/recast-checkpoint.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/__init__.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/__init__.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/bigbench_groups.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/blimp_groups.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/original.txt +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/popularity.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/mtasks.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/preprocess.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/recast.py +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/SOURCES.txt +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/dependency_links.txt +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/requires.txt +0 -0
- {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/top_level.txt +0 -0
{tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/access-checkpoint.py
RENAMED
|
@@ -100,6 +100,10 @@ def load_task(id=None, dataset_name=None,config_name=None,task_name=None,preproc
|
|
|
100
100
|
query = {k:v for k,v in query.items() if v}
|
|
101
101
|
_tasks = (lmtasks if multilingual else tasks)
|
|
102
102
|
preprocessing = load_preprocessing(_tasks, **query)
|
|
103
|
+
|
|
104
|
+
if "trust_remote_code" not in load_dataset_kwargs:
|
|
105
|
+
load_dataset_kwargs["trust_remote_code"] = True
|
|
106
|
+
|
|
103
107
|
dataset = load_dataset(preprocessing.dataset_name, preprocessing.config_name, **load_dataset_kwargs)
|
|
104
108
|
dataset= preprocessing(dataset,max_rows, max_rows_eval)
|
|
105
109
|
dataset.task_type = preprocessing.__class__.__name__
|
{tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/tasks-checkpoint.py
RENAMED
|
@@ -638,7 +638,8 @@ quarel = Classification(
|
|
|
638
638
|
labels=lambda x: "AB"[x["answer_index"]]
|
|
639
639
|
)
|
|
640
640
|
|
|
641
|
-
mwong_fever_evidence_related = Classification(sentence1="claim", sentence2="evidence", labels="labels",
|
|
641
|
+
mwong_fever_evidence_related = Classification(sentence1="claim", sentence2="evidence", labels=name("labels",['unrelated','related']),
|
|
642
|
+
splits=["train", "valid", "test"], dataset_name="mwong/fever-evidence-related")
|
|
642
643
|
|
|
643
644
|
numer_sense = Classification("sentence",labels="target",splits=["train",None,None])
|
|
644
645
|
|
|
@@ -1074,7 +1075,7 @@ fld = Classification("context","hypothesis", "proof_label",
|
|
|
1074
1075
|
flds = Classification("context","hypothesis", "proof_label",
|
|
1075
1076
|
dataset_name="hitachi-nlp/FLD.v2",config_name="star")
|
|
1076
1077
|
|
|
1077
|
-
sdoh_nli = Classification("premise","hypothesis",labels=lambda x:{True:"entailment",False:"
|
|
1078
|
+
sdoh_nli = Classification("premise","hypothesis",labels=lambda x:{True:"entailment",False:"not_entailment"}[x['label']],
|
|
1078
1079
|
dataset_name="tasksource/SDOH-NLI")
|
|
1079
1080
|
|
|
1080
1081
|
scifact_entailment = Classification(lambda x:"\n".join(x["abstract"]),"claim",
|
|
@@ -1275,4 +1276,23 @@ seahorse = Classification('article',cat(["summary", "question"]),'answer',
|
|
|
1275
1276
|
dataset_name="tasksource/seahorse_summarization_evaluation")
|
|
1276
1277
|
|
|
1277
1278
|
mip = Classification("prompt",labels="y",
|
|
1278
|
-
dataset_name="sileod/missing-item-prediction",config_name="contrastive")
|
|
1279
|
+
dataset_name="sileod/missing-item-prediction",config_name="contrastive")
|
|
1280
|
+
|
|
1281
|
+
jigsaw_toxicity = Classification('comment_text',labels=name("toxic",["notthate","hate"]),
|
|
1282
|
+
dataset_name="tasksource/jigsaw_toxicity")
|
|
1283
|
+
|
|
1284
|
+
pol_nli = Classification("premise","hypothesis",labels=name('entailment',['entailment','not_entailment']),
|
|
1285
|
+
dataset_name="mlburnham/Pol_NLI")
|
|
1286
|
+
|
|
1287
|
+
synthetic_retrieval_nli = Classification('premise','hypothesis','label',dataset_name='tasksource/synthetic-retrieval-NLI',
|
|
1288
|
+
config_name=["binary","count","position"],
|
|
1289
|
+
pre_process=lambda ds:ds.filter(lambda x:x['n']<=2048))
|
|
1290
|
+
|
|
1291
|
+
issue_similarity = Classification("text1","text2","label",
|
|
1292
|
+
dataset_name="WhereIsAI/github-issue-similarity")
|
|
1293
|
+
|
|
1294
|
+
#nli_l2 = Classification("sentence1","sentence2","labels",
|
|
1295
|
+
# dataset_name="tasksource/merged-2l-nli")
|
|
1296
|
+
|
|
1297
|
+
#nli_l3 = Classification("sentence1","sentence2","labels",
|
|
1298
|
+
# dataset_name="tasksource/merged-3l-nli")
|
|
@@ -100,6 +100,10 @@ def load_task(id=None, dataset_name=None,config_name=None,task_name=None,preproc
|
|
|
100
100
|
query = {k:v for k,v in query.items() if v}
|
|
101
101
|
_tasks = (lmtasks if multilingual else tasks)
|
|
102
102
|
preprocessing = load_preprocessing(_tasks, **query)
|
|
103
|
+
|
|
104
|
+
if "trust_remote_code" not in load_dataset_kwargs:
|
|
105
|
+
load_dataset_kwargs["trust_remote_code"] = True
|
|
106
|
+
|
|
103
107
|
dataset = load_dataset(preprocessing.dataset_name, preprocessing.config_name, **load_dataset_kwargs)
|
|
104
108
|
dataset= preprocessing(dataset,max_rows, max_rows_eval)
|
|
105
109
|
dataset.task_type = preprocessing.__class__.__name__
|
|
@@ -638,7 +638,8 @@ quarel = Classification(
|
|
|
638
638
|
labels=lambda x: "AB"[x["answer_index"]]
|
|
639
639
|
)
|
|
640
640
|
|
|
641
|
-
mwong_fever_evidence_related = Classification(sentence1="claim", sentence2="evidence", labels="labels",
|
|
641
|
+
mwong_fever_evidence_related = Classification(sentence1="claim", sentence2="evidence", labels=name("labels",['unrelated','related']),
|
|
642
|
+
splits=["train", "valid", "test"], dataset_name="mwong/fever-evidence-related")
|
|
642
643
|
|
|
643
644
|
numer_sense = Classification("sentence",labels="target",splits=["train",None,None])
|
|
644
645
|
|
|
@@ -1074,7 +1075,7 @@ fld = Classification("context","hypothesis", "proof_label",
|
|
|
1074
1075
|
flds = Classification("context","hypothesis", "proof_label",
|
|
1075
1076
|
dataset_name="hitachi-nlp/FLD.v2",config_name="star")
|
|
1076
1077
|
|
|
1077
|
-
sdoh_nli = Classification("premise","hypothesis",labels=lambda x:{True:"entailment",False:"
|
|
1078
|
+
sdoh_nli = Classification("premise","hypothesis",labels=lambda x:{True:"entailment",False:"not_entailment"}[x['label']],
|
|
1078
1079
|
dataset_name="tasksource/SDOH-NLI")
|
|
1079
1080
|
|
|
1080
1081
|
scifact_entailment = Classification(lambda x:"\n".join(x["abstract"]),"claim",
|
|
@@ -1275,4 +1276,23 @@ seahorse = Classification('article',cat(["summary", "question"]),'answer',
|
|
|
1275
1276
|
dataset_name="tasksource/seahorse_summarization_evaluation")
|
|
1276
1277
|
|
|
1277
1278
|
mip = Classification("prompt",labels="y",
|
|
1278
|
-
dataset_name="sileod/missing-item-prediction",config_name="contrastive")
|
|
1279
|
+
dataset_name="sileod/missing-item-prediction",config_name="contrastive")
|
|
1280
|
+
|
|
1281
|
+
jigsaw_toxicity = Classification('comment_text',labels=name("toxic",["notthate","hate"]),
|
|
1282
|
+
dataset_name="tasksource/jigsaw_toxicity")
|
|
1283
|
+
|
|
1284
|
+
pol_nli = Classification("premise","hypothesis",labels=name('entailment',['entailment','not_entailment']),
|
|
1285
|
+
dataset_name="mlburnham/Pol_NLI")
|
|
1286
|
+
|
|
1287
|
+
synthetic_retrieval_nli = Classification('premise','hypothesis','label',dataset_name='tasksource/synthetic-retrieval-NLI',
|
|
1288
|
+
config_name=["binary","count","position"],
|
|
1289
|
+
pre_process=lambda ds:ds.filter(lambda x:x['n']<=2048))
|
|
1290
|
+
|
|
1291
|
+
issue_similarity = Classification("text1","text2","label",
|
|
1292
|
+
dataset_name="WhereIsAI/github-issue-similarity")
|
|
1293
|
+
|
|
1294
|
+
#nli_l2 = Classification("sentence1","sentence2","labels",
|
|
1295
|
+
# dataset_name="tasksource/merged-2l-nli")
|
|
1296
|
+
|
|
1297
|
+
#nli_l3 = Classification("sentence1","sentence2","labels",
|
|
1298
|
+
# dataset_name="tasksource/merged-3l-nli")
|