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.
Files changed (32) hide show
  1. {tasksource-0.0.46 → tasksource-0.0.47}/PKG-INFO +1 -1
  2. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/access-checkpoint.py +4 -0
  3. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/tasks-checkpoint.py +23 -3
  4. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/access.py +4 -0
  5. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/tasks.py +23 -3
  6. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/PKG-INFO +1 -1
  7. {tasksource-0.0.46 → tasksource-0.0.47}/tasks.md +292 -287
  8. {tasksource-0.0.46 → tasksource-0.0.47}/.github/scripts/release.py +0 -0
  9. {tasksource-0.0.46 → tasksource-0.0.47}/.github/workflows/python-publish.yml +0 -0
  10. {tasksource-0.0.46 → tasksource-0.0.47}/.github/workflows/release.yml +0 -0
  11. {tasksource-0.0.46 → tasksource-0.0.47}/.gitignore +0 -0
  12. {tasksource-0.0.46 → tasksource-0.0.47}/CITATION.cff +0 -0
  13. {tasksource-0.0.46 → tasksource-0.0.47}/LICENSE +0 -0
  14. {tasksource-0.0.46 → tasksource-0.0.47}/README.md +0 -0
  15. {tasksource-0.0.46 → tasksource-0.0.47}/mtasks.md +0 -0
  16. {tasksource-0.0.46 → tasksource-0.0.47}/pyproject.toml +0 -0
  17. {tasksource-0.0.46 → tasksource-0.0.47}/setup.cfg +0 -0
  18. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/preprocess-checkpoint.py +0 -0
  19. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/.ipynb_checkpoints/recast-checkpoint.py +0 -0
  20. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/__init__.py +0 -0
  21. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/__init__.py +0 -0
  22. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/bigbench_groups.py +0 -0
  23. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/blimp_groups.py +0 -0
  24. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/original.txt +0 -0
  25. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/metadata/popularity.py +0 -0
  26. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/mtasks.py +0 -0
  27. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/preprocess.py +0 -0
  28. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource/recast.py +0 -0
  29. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/SOURCES.txt +0 -0
  30. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/dependency_links.txt +0 -0
  31. {tasksource-0.0.46 → tasksource-0.0.47}/src/tasksource.egg-info/requires.txt +0 -0
  32. {tasksource-0.0.46 → tasksource-0.0.47}/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.46
3
+ Version: 0.0.47
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
@@ -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", splits=["train", "valid", "test"], dataset_name="mwong/fever-evidence-related")
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:"not-entailment"}[x['label']],
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", splits=["train", "valid", "test"], dataset_name="mwong/fever-evidence-related")
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:"not-entailment"}[x['label']],
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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tasksource
3
- Version: 0.0.46
3
+ Version: 0.0.47
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