mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-26 17:11:02 +02:00
compact script update
This commit is contained in:
parent
c7ab8d05b3
commit
0945adeee5
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue