Closed laiqinghan closed 1 year ago
Please provide a clear and concise description of what the question is.
for prompt in get_prompt(examples): for i in range(len(prompt) // 2): **source_txt = prompt[2 * i]** tokenized_question = tokenizer( source_txt, truncation=True, max_length=max_source_length, padding="max_length", return_tensors="pt" ) new_examples["query"].append(source_txt) new_examples["input_ids"].append(tokenized_question["input_ids"])
取的是query,格式是: 0 问 1 答 2 问 3 答
所以去偶数的。
Describe the Question
Please provide a clear and concise description of what the question is.