Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prepare/cards/arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

for subtask in subtasks:
card = TaskCard(
loader=LoadHF(path="ai2_arc", name=subtask),
loader=LoadHF(path="allenai/ai2_arc", name=subtask),
preprocess_steps=[
Set({"topic": "science"}),
Rename(field_to_field={"answerKey": "label", "choices": "_choices"}),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/billsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
n_chars_to_filter_by_list = ["max", 6000, 10000]
for n_chars_to_filter_by in n_chars_to_filter_by_list:
card = TaskCard(
loader=LoadHF(path="billsum"),
loader=LoadHF(path="FiscalNote/billsum"),
preprocess_steps=[
SplitRandomMix(
{"train": "train[87.5%]", "validation": "train[12.5%]", "test": "test"}
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/clinc_oos.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@

for subset in ["small", "imbalanced", "plus"]:
card = TaskCard(
loader=LoadHF(path="clinc_oos", name=subset),
loader=LoadHF(path="clinc/clinc_oos", name=subset),
preprocess_steps=[
Shuffle(page_size=sys.maxsize),
Rename(field_to_field={"intent": "label"}),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/cnn_dailymail.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="cnn_dailymail", name="3.0.0"),
loader=LoadHF(path="abisee/cnn_dailymail", name="3.0.0"),
preprocess_steps=[
Rename(field_to_field={"article": "document"}),
Wrap(field="highlights", inside="list", to_field="summaries"),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/copa.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="super_glue", name="copa"),
loader=LoadHF(path="aps/super_glue", name="copa"),
preprocess_steps=[
"splitters.small_no_test",
ListFieldValues(fields=["choice1", "choice2"], to_field="choices"),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/dbpedia_14.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
mappers = {str(i): cls for i, cls in enumerate(classes)}

card = TaskCard(
loader=LoadHF(path=f"{dataset_name}"),
loader=LoadHF(path="fancyzhx/dbpedia_14"),
preprocess_steps=[
Shuffle(page_size=sys.maxsize),
SplitRandomMix(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/ethos.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

card = TaskCard(
loader=LoadHF(
path="ethos",
path="iamollas/ethos",
revision="refs/convert/parquet",
data_dir="binary",
splits=["train"],
Expand Down
4 changes: 2 additions & 2 deletions prepare/cards/go_emotions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
dataset_name = "go_emotions"
subset = "simplified"

ds_builder = load_dataset_builder(dataset_name, subset)
ds_builder = load_dataset_builder("google-research-datasets/go_emotions", subset)
classes = ds_builder.info.features["labels"].feature.names

mappers = {str(i): cls for i, cls in enumerate(classes)}

card = TaskCard(
loader=LoadHF(path=dataset_name, name=subset),
loader=LoadHF(path="google-research-datasets/go_emotions", name=subset),
preprocess_steps=[
MapInstanceValues(mappers={"labels": mappers}, process_every_value=True),
Set(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/hellaswag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="hellaswag"),
loader=LoadHF(path="Rowan/hellaswag"),
preprocess_steps=[
"splitters.large_no_test",
Rename(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/human_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
get_asserts = '[t for t in re.findall(r"assert.*?(?=\\n\\s*assert|$)", test.replace("candidate", entry_point), re.DOTALL)]'

card = TaskCard(
loader=LoadHF(path="openai_humaneval", split="test"),
loader=LoadHF(path="openai/openai_humaneval", split="test"),
preprocess_steps=[
ExecuteExpression(
expression=get_asserts, imports_list=["re"], to_field="test_list"
Expand Down
4 changes: 2 additions & 2 deletions prepare/cards/ledgar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

dataset_name = "ledgar"

ds_builder = load_dataset_builder("lex_glue", dataset_name)
ds_builder = load_dataset_builder("coastalcph/lex_glue", dataset_name)
classlabels = ds_builder.info.features["label"]

mappers = {}
for i in range(len(classlabels.names)):
mappers[str(i)] = classlabels.names[i]

card = TaskCard(
loader=LoadHF(path="lex_glue", name=f"{dataset_name}"),
loader=LoadHF(path="coastalcph/lex_glue", name=f"{dataset_name}"),
preprocess_steps=[
MapInstanceValues({"label": mappers}),
Set(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/mbpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="mbpp", name="full", split="test"),
loader=LoadHF(path="google-research-datasets/mbpp", name="full", split="test"),
preprocess_steps=[
JoinStr(field_to_field={"test_list": "test_list_str"}, separator=os.linesep),
],
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/mlsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
for lang in langs:
card = TaskCard(
loader=LoadHF(
path="mlsum",
path="reciTAL/mlsum",
revision="refs/convert/parquet",
data_dir=lang,
splits=["train", "test", "validation"],
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/openbookqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="openbookqa"),
loader=LoadHF(path="allenai/openbookqa"),
preprocess_steps=[
Rename(
field_to_field={"choices/text": "choices_text", "choices/label": "labels"},
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/piqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="piqa", revision="refs/pr/9"),
loader=LoadHF(path="ybisk/piqa", revision="refs/pr/9"),
preprocess_steps=[
ListFieldValues(fields=["sol1", "sol2"], to_field="choices"),
Rename(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/race.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

for subset in ["all", "high", "middle"]:
card = TaskCard(
loader=LoadHF(path="race", name=subset),
loader=LoadHF(path="ehovy/race", name=subset),
preprocess_steps=[
Set({"numbering": numbering}),
IndexOf(search_in="numbering", index_of="answer", to_field="answer"),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/sciq.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="sciq"),
loader=LoadHF(path="allenai/sciq"),
preprocess_steps=[
ListFieldValues(
fields=["distractor1", "distractor2", "distractor3", "correct_answer"],
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/squad.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="squad"),
loader=LoadHF(path="rajpurkar/squad"),
preprocess_steps=[
"splitters.small_no_test",
Copy(field="answers/text", to_field="answers"),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/translation/wmt/en_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="wmt16", name="de-en", streaming=True),
loader=LoadHF(path="wmt/wmt16", name="de-en", streaming=True),
preprocess_steps=[
Copy(
field_to_field=[
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/translation/wmt/en_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="wmt14", name="fr-en", streaming=True),
loader=LoadHF(path="wmt/wmt14", name="fr-en", streaming=True),
preprocess_steps=[
Copy(
field_to_field=[
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/translation/wmt/en_ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="wmt16", name="ro-en", streaming=True),
loader=LoadHF(path="wmt/wmt16", name="ro-en", streaming=True),
preprocess_steps=[
Copy(
field_to_field=[
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/trec.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

card = TaskCard(
loader=LoadHF(
path="trec", revision="refs/convert/parquet", splits=["train", "test"]
path="CogComp/trec", revision="refs/convert/parquet", splits=["train", "test"]
),
preprocess_steps=[
Shuffle(page_size=sys.maxsize),
Expand Down
4 changes: 2 additions & 2 deletions prepare/cards/unfair_tos.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

dataset_name = "unfair_tos"

ds_builder = load_dataset_builder("lex_glue", dataset_name)
ds_builder = load_dataset_builder("coastalcph/lex_glue", dataset_name)
classlabels = ds_builder.info.features["labels"]

mappers = {}
for i in range(len(classlabels.feature.names)):
mappers[str(i)] = classlabels.feature.names[i]

card = TaskCard(
loader=LoadHF(path="lex_glue", name=f"{dataset_name}"),
loader=LoadHF(path="coastalcph/lex_glue", name=f"{dataset_name}"),
preprocess_steps=[
MapInstanceValues(mappers={"labels": mappers}, process_every_value=True),
Set(
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/wiki_bio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

card = TaskCard(
loader=LoadHF(
path="wiki_bio",
path="michaelauli/wiki_bio",
revision="refs/convert/parquet",
splits=["train", "validation", "test"],
),
Expand Down
4 changes: 3 additions & 1 deletion prepare/cards/winogrande.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
for subtask in ["debiased", "l", "m", "s", "xl", "xs"]:
card = TaskCard(
loader=LoadHF(
path="winogrande", name=f"winogrande_{subtask}", revision="refs/pr/6"
path="allenai/winogrande",
name=f"winogrande_{subtask}",
revision="refs/pr/6",
),
preprocess_steps=[
"splitters.small_no_test",
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/wsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from unitxt.test_utils.card import test_card

card = TaskCard(
loader=LoadHF(path="super_glue", name="wsc"),
loader=LoadHF(path="aps/super_glue", name="wsc"),
preprocess_steps=[
"splitters.small_no_test",
MapInstanceValues(mappers={"label": {"0": "False", "1": "True"}}),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/xnli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

for lang in langs:
card = TaskCard(
loader=LoadHF(path="xnli", name=lang),
loader=LoadHF(path="facebook/xnli", name=lang),
preprocess_steps=[
"splitters.small_no_test",
Rename(field_to_field={"premise": "text_a", "hypothesis": "text_b"}),
Expand Down
2 changes: 1 addition & 1 deletion prepare/cards/yahoo_answers_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
mappers = {str(i): cls for i, cls in enumerate(classes)}

card = TaskCard(
loader=LoadHF(path=f"{dataset_name}"),
loader=LoadHF(path="community-datasets/yahoo_answers_topics"),
preprocess_steps=[
Shuffle(page_size=sys.maxsize),
SplitRandomMix(
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/ai2_arc/arc_challenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "ai2_arc",
"path": "allenai/ai2_arc",
"name": "ARC-Challenge"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/ai2_arc/arc_easy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "ai2_arc",
"path": "allenai/ai2_arc",
"name": "ARC-Easy"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/billsum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "billsum"
"path": "FiscalNote/billsum"
},
"preprocess_steps": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "billsum"
"path": "FiscalNote/billsum"
},
"preprocess_steps": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "billsum"
"path": "FiscalNote/billsum"
},
"preprocess_steps": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/clinc_oos/imbalanced.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "clinc_oos",
"path": "clinc/clinc_oos",
"name": "imbalanced"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/clinc_oos/plus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "clinc_oos",
"path": "clinc/clinc_oos",
"name": "plus"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/clinc_oos/small.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "clinc_oos",
"path": "clinc/clinc_oos",
"name": "small"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/cnn_dailymail.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "cnn_dailymail",
"path": "abisee/cnn_dailymail",
"name": "3.0.0"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/copa.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "super_glue",
"path": "aps/super_glue",
"name": "copa"
},
"preprocess_steps": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/dbpedia_14.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "dbpedia_14"
"path": "fancyzhx/dbpedia_14"
},
"preprocess_steps": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/ethos_binary.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "ethos",
"path": "iamollas/ethos",
"revision": "refs/convert/parquet",
"data_dir": "binary",
"splits": [
Expand Down
2 changes: 1 addition & 1 deletion src/unitxt/catalog/cards/go_emotions/simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "go_emotions",
"path": "google-research-datasets/go_emotions",
"name": "simplified"
},
"preprocess_steps": [
Expand Down
Loading
Loading