Skip to content

Commit

Permalink
new tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Sileo committed May 31, 2023
1 parent a09577b commit a1f1190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/tasksource/mtasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ def concatenate_configs(dataset):
xstory = MultipleChoice(constant(''),choices=["text_right_ending","text_wrong_ending"],labels=constant(0),
**all("juletxara/xstory_cloze"))

anthropic_rlhf = MultipleChoice(constant(''), ['chosen','rejected'], constant(0),
dataset_name="Anthropic/hh-rlhf")

xglue_ner = TokenClassification("words","ner", dataset_name="xglue",config_name="ner")
xglue_pos = TokenClassification("words","pos", dataset_name="xglue",config_name="pos")

Expand Down
7 changes: 6 additions & 1 deletion src/tasksource/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,4 +984,9 @@ def _udep_post_process(ds):
sharc_classification = Classification("snippet", lambda x:f'{x["scenario"]}\n{x["question"]}' ,labels="answer",dataset_name='sharc_modified',config_name='mod',
pre_process = lambda ds:ds.filter(lambda x:x['answer'] in {"Yes","No","Irrelevant"}))

conceptrules_v2 = Classification("context", "text", "label", dataset_name="tasksource/conceptrules_v2")
conceptrules_v2 = Classification("context", "text", "label", dataset_name="tasksource/conceptrules_v2")

scidtb = Classification("unit1_txt","unit2_txt","label", dataset_name="metaeval/disrpt",config_name='eng.dep.scidtb')

chunking = TokenClassification("tokens","chunk_tags", dataset_name="conll2000")
few_nerd=TokenClassification("tokens","fine_ner_tags",dataset_name="DFKI-SLT/few-nerd",config_name='supervised')

0 comments on commit a1f1190

Please sign in to comment.