69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"model": null,
|
|
"signature": {
|
|
"description": "Classify the emotions expressed in the given text. Multiple emotions can be present simultaneously.\n\nFirst, reason through the text carefully, identifying any emotional cues, tone,\nand context. Consider both explicit and implicit emotional expressions.\n\nThen output the detected emotions as a list from these options:\nadmiration, amusement, anger, annoyance, approval, caring, confusion, curiosity,\ndesire, disappointment, disapproval, disgust, embarrassment, excitement, fear,\ngratitude, grief, joy, love, nervousness, optimism, pride, realization, relief,\nremorse, sadness, surprise, neutral\n\nIf no clear emotion is detected, output [\"neutral\"].",
|
|
"properties": {
|
|
"text": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "The text to classify for emotions",
|
|
"prefix": "Text:",
|
|
"title": "Text",
|
|
"type": "string"
|
|
},
|
|
"reasoning": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "Step-by-step analysis of emotional cues in the text",
|
|
"prefix": "Reasoning:",
|
|
"title": "Reasoning",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "List of detected emotions",
|
|
"items": {
|
|
"enum": [
|
|
"admiration",
|
|
"amusement",
|
|
"anger",
|
|
"annoyance",
|
|
"approval",
|
|
"caring",
|
|
"confusion",
|
|
"curiosity",
|
|
"desire",
|
|
"disappointment",
|
|
"disapproval",
|
|
"disgust",
|
|
"embarrassment",
|
|
"excitement",
|
|
"fear",
|
|
"gratitude",
|
|
"grief",
|
|
"joy",
|
|
"love",
|
|
"nervousness",
|
|
"optimism",
|
|
"pride",
|
|
"realization",
|
|
"relief",
|
|
"remorse",
|
|
"sadness",
|
|
"surprise",
|
|
"neutral"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"prefix": "Label:",
|
|
"title": "Label",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"text",
|
|
"reasoning",
|
|
"label"
|
|
],
|
|
"title": "EmotionSig",
|
|
"type": "object"
|
|
}
|
|
} |