bulk_data = [
{
"dataset": dataset_id,
"inputs": {
"text": "This movie was fantastic!",
"rating": 5
},
"outputs": {
"sentiment": "positive"
}
},
{
"dataset": dataset_id,
"inputs": {
"text": "I didn't enjoy this film at all.",
"rating": 1
},
"outputs": {
"sentiment": "negative"
}
},
{
"dataset": dataset_id,
"inputs": {
"text": "The movie was okay, nothing special.",
"rating": 3
},
"outputs": {
"sentiment": "neutral"
}
}
]
# Save bulk data to a file
bulk_file_path = "./bulk_items.json"
with open(bulk_file_path, 'w') as f:
json.dump(bulk_data, f, indent=2)