compact script update

This commit is contained in:
51616 2025-07-21 09:04:53 +00:00
parent c7ab8d05b3
commit 0945adeee5
2 changed files with 3 additions and 4 deletions

View file

@ -17,7 +17,7 @@ if __name__ == "__main__":
if ctx not in ctx_qa_dict:
ctx_qa_dict[ctx] = {"prompts": [], "responses": []}
question = closed_qa_prompting(sample["question"])
answer = ", ".join(set(sample["answers_spans"]["spans"]))
answer = sample["answers_spans"]["spans"][0]
ctx_qa_dict[ctx]["prompts"].append(question)
ctx_qa_dict[ctx]["responses"].append(answer)