Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
question-generation
License:
Update process.py
Browse files- process.py +1 -1
process.py
CHANGED
@@ -17,7 +17,7 @@ def create_data(hf_data):
|
|
17 |
example = {
|
18 |
'paragraph': paragraph.replace(SEP_TOKEN, " "),
|
19 |
'questions': [_g.replace(SEP_TOKEN, " ") for _g in g['question']],
|
20 |
-
'answers': [_g
|
21 |
}
|
22 |
example["questions_answers"] = SEP_TOKEN.join([f"Q: {q}, A: {a}" for q, a in zip(example["questions"], example["answers"])])
|
23 |
output.append(example)
|
|
|
17 |
example = {
|
18 |
'paragraph': paragraph.replace(SEP_TOKEN, " "),
|
19 |
'questions': [_g.replace(SEP_TOKEN, " ") for _g in g['question']],
|
20 |
+
'answers': [_g.replace(SEP_TOKEN, " ") for _g in g['answer']],
|
21 |
}
|
22 |
example["questions_answers"] = SEP_TOKEN.join([f"Q: {q}, A: {a}" for q, a in zip(example["questions"], example["answers"])])
|
23 |
output.append(example)
|