Update coqa_expanded.py
Browse files- coqa_expanded.py +4 -5
coqa_expanded.py
CHANGED
|
@@ -7,8 +7,7 @@ import datasets
|
|
| 7 |
|
| 8 |
|
| 9 |
# TODO(coqa): BibTeX citation
|
| 10 |
-
_CITATION = """\
|
| 11 |
-
@InProceedings{SivaAndAl:Coca,
|
| 12 |
author = {Siva, Reddy and Danqi, Chen and Christopher D., Manning},
|
| 13 |
title = {WikiQA: A Challenge Dataset for Open-Domain Question Answering},
|
| 14 |
journal = { arXiv},
|
|
@@ -18,8 +17,7 @@ _CITATION = """\
|
|
| 18 |
"""
|
| 19 |
|
| 20 |
# TODO(coqa):
|
| 21 |
-
_DESCRIPTION = """\
|
| 22 |
-
CoQA: A Conversational Question Answering Challenge
|
| 23 |
"""
|
| 24 |
|
| 25 |
_TRAIN_DATA_URL = "https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json"
|
|
@@ -95,4 +93,5 @@ class Coqa(datasets.GeneratorBasedBuilder):
|
|
| 95 |
"question": question ,
|
| 96 |
"answer": {"input_text": answer["input_text"], "answer_start": answer["span_start"], "answer_end": answer["span_end"]},
|
| 97 |
}
|
| 98 |
-
_id += 1
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
# TODO(coqa): BibTeX citation
|
| 10 |
+
_CITATION = """\\n@InProceedings{SivaAndAl:Coca,
|
|
|
|
| 11 |
author = {Siva, Reddy and Danqi, Chen and Christopher D., Manning},
|
| 12 |
title = {WikiQA: A Challenge Dataset for Open-Domain Question Answering},
|
| 13 |
journal = { arXiv},
|
|
|
|
| 17 |
"""
|
| 18 |
|
| 19 |
# TODO(coqa):
|
| 20 |
+
_DESCRIPTION = """\\nCoQA: A Conversational Question Answering Challenge
|
|
|
|
| 21 |
"""
|
| 22 |
|
| 23 |
_TRAIN_DATA_URL = "https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json"
|
|
|
|
| 93 |
"question": question ,
|
| 94 |
"answer": {"input_text": answer["input_text"], "answer_start": answer["span_start"], "answer_end": answer["span_end"]},
|
| 95 |
}
|
| 96 |
+
_id += 1
|
| 97 |
+
story += '\n'+question+'\n'+answer["input_text"]
|