diff --git a/README.md b/README.md index 9bc2dd3..34981c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# sem_eval_2010_task_8 +--- +{} +--- +# sem_eval_2010_task_8 \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..c292181 --- /dev/null +++ b/config.json @@ -0,0 +1,57 @@ +{ + "model": null, + "signature": { + "description": "Classify the semantic relation in the sentence using SemEval 2010 Task 8 labels. As you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "properties": { + "sentence": { + "__dspy_field_type": "input", + "desc": "Sentence containing the entity pair relation.", + "prefix": "Sentence:", + "title": "Sentence", + "type": "string" + }, + "reasoning": { + "__dspy_field_type": "output", + "desc": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant.", + "prefix": "Reasoning:", + "title": "Reasoning", + "type": "string" + }, + "relation_label": { + "__dspy_field_type": "output", + "desc": "Final relation label from: Cause-Effect(e1,e2), Cause-Effect(e2,e1), Component-Whole(e1,e2), Component-Whole(e2,e1), Content-Container(e1,e2), Content-Container(e2,e1), Entity-Destination(e1,e2), Entity-Destination(e2,e1), Entity-Origin(e1,e2), Entity-Origin(e2,e1), Instrument-Agency(e1,e2), Instrument-Agency(e2,e1), Member-Collection(e1,e2), Member-Collection(e2,e1), Message-Topic(e1,e2), Message-Topic(e2,e1), Product-Producer(e1,e2), Product-Producer(e2,e1), Other.", + "enum": [ + "Cause-Effect(e1,e2)", + "Cause-Effect(e2,e1)", + "Component-Whole(e1,e2)", + "Component-Whole(e2,e1)", + "Content-Container(e1,e2)", + "Content-Container(e2,e1)", + "Entity-Destination(e1,e2)", + "Entity-Destination(e2,e1)", + "Entity-Origin(e1,e2)", + "Entity-Origin(e2,e1)", + "Instrument-Agency(e1,e2)", + "Instrument-Agency(e2,e1)", + "Member-Collection(e1,e2)", + "Member-Collection(e2,e1)", + "Message-Topic(e1,e2)", + "Message-Topic(e2,e1)", + "Product-Producer(e1,e2)", + "Product-Producer(e2,e1)", + "Other" + ], + "prefix": "Relation Label:", + "title": "Relation Label", + "type": "string" + } + }, + "required": [ + "sentence", + "reasoning", + "relation_label" + ], + "title": "SemEvalRelationJudgeSig", + "type": "object" + } +} \ No newline at end of file diff --git a/program.json b/program.json new file mode 100644 index 0000000..df71e1d --- /dev/null +++ b/program.json @@ -0,0 +1,40 @@ +{ + "traces": [], + "train": [], + "demos": [], + "signature": { + "instructions": "Classify the semantic relation in the sentence using SemEval 2010 Task 8 labels. As you reason, note any uncertainties, ambiguities, and gaps \u2014 both in how the instructions apply to the task at hand and in whether you have the knowledge needed to solve it. Be honest in your reasoning when you are unsure about your answer.", + "fields": [ + { + "prefix": "Sentence:", + "description": "Sentence containing the entity pair relation." + }, + { + "prefix": "Reasoning:", + "description": "Step-by-step reasoning, including uncertainty, ambiguity, or uncertainty in your thought process when relevant." + }, + { + "prefix": "Relation Label:", + "description": "Final relation label from: Cause-Effect(e1,e2), Cause-Effect(e2,e1), Component-Whole(e1,e2), Component-Whole(e2,e1), Content-Container(e1,e2), Content-Container(e2,e1), Entity-Destination(e1,e2), Entity-Destination(e2,e1), Entity-Origin(e1,e2), Entity-Origin(e2,e1), Instrument-Agency(e1,e2), Instrument-Agency(e2,e1), Member-Collection(e1,e2), Member-Collection(e2,e1), Message-Topic(e1,e2), Message-Topic(e2,e1), Product-Producer(e1,e2), Product-Producer(e2,e1), Other." + } + ] + }, + "lm": { + "model": "together_ai/Qwen/Qwen2.5-7B-Instruct-Turbo", + "model_type": "chat", + "cache": true, + "num_retries": 3, + "finetuning_model": null, + "launch_kwargs": {}, + "train_kwargs": {}, + "temperature": null, + "max_tokens": null + }, + "metadata": { + "dependency_versions": { + "python": "3.11", + "dspy": "3.1.3", + "cloudpickle": "3.1" + } + } +} \ No newline at end of file