dataset_items = {
"magic": [
{
"inputs": {"premise": "All roses are flowers.", "hypothesis": "Some flowers are roses."},
"outputs": {"relationship": "entailment"}
},
{
"inputs": {"premise": "The Earth orbits the Sun.", "hypothesis": "The Moon is made of cheese."},
"outputs": {"relationship": "neutral"}
},
{
"inputs": {"premise": "Water freezes at 0°C.", "hypothesis": "Water boils at 0°C."},
"outputs": {"relationship": "contradiction"}
},
{
"inputs": {"premise": "All mammals give birth to live young.", "hypothesis": "Whales give birth to live young."},
"outputs": {"relationship": "entailment"}
},
{
"inputs": {"premise": "The Eiffel Tower is in Paris.", "hypothesis": "Paris is the capital of Italy."},
"outputs": {"relationship": "contradiction"}
},
{
"inputs": {"premise": "Gold is a precious metal.", "hypothesis": "Silver is used in jewelry."},
"outputs": {"relationship": "neutral"}
},
{
"inputs": {"premise": "All squares are rectangles.", "hypothesis": "All rectangles are squares."},
"outputs": {"relationship": "contradiction"}
},
{
"inputs": {"premise": "The Pacific Ocean is the largest ocean.", "hypothesis": "The Atlantic Ocean exists."},
"outputs": {"relationship": "neutral"}
},
{
"inputs": {"premise": "Oxygen is necessary for human survival.", "hypothesis": "Humans need to breathe to live."},
"outputs": {"relationship": "entailment"}
}
]
}
for dataset_type, dataset_id in datasets.items():
for item in dataset_items[dataset_type]:
item["dataset"] = dataset_id
response = api_call("POST", "dataset-items/", item)