Change field name "question" to "query"
Browse files- phrase_retrieval.py +4 -4
phrase_retrieval.py
CHANGED
@@ -72,12 +72,12 @@ class PhraseRetrieval(datasets.GeneratorBasedBuilder):
|
|
72 |
BUILDER_CONFIGS = [
|
73 |
PRConfig(
|
74 |
name=_PR_PASS,
|
75 |
-
version=datasets.Version("1.0.
|
76 |
description="The PiC Dataset for Phrase Retrieval at short passage level (~11 sentences)"
|
77 |
),
|
78 |
PRConfig(
|
79 |
name=_PR_PAGE,
|
80 |
-
version=datasets.Version("1.0.
|
81 |
description="The PiC Dataset for Phrase Retrieval at Wiki page level"
|
82 |
),
|
83 |
]
|
@@ -90,7 +90,7 @@ class PhraseRetrieval(datasets.GeneratorBasedBuilder):
|
|
90 |
"id": datasets.Value("string"),
|
91 |
"title": datasets.Value("string"),
|
92 |
"context": datasets.Value("string"),
|
93 |
-
"
|
94 |
"answers": datasets.Sequence(
|
95 |
{
|
96 |
"text": datasets.Value("string"),
|
@@ -142,7 +142,7 @@ class PhraseRetrieval(datasets.GeneratorBasedBuilder):
|
|
142 |
yield key, {
|
143 |
"title": title,
|
144 |
"context": example["context"],
|
145 |
-
"
|
146 |
"id": example["id"],
|
147 |
"answers": {
|
148 |
"answer_start": answer_starts,
|
|
|
72 |
BUILDER_CONFIGS = [
|
73 |
PRConfig(
|
74 |
name=_PR_PASS,
|
75 |
+
version=datasets.Version("1.0.3"),
|
76 |
description="The PiC Dataset for Phrase Retrieval at short passage level (~11 sentences)"
|
77 |
),
|
78 |
PRConfig(
|
79 |
name=_PR_PAGE,
|
80 |
+
version=datasets.Version("1.0.3"),
|
81 |
description="The PiC Dataset for Phrase Retrieval at Wiki page level"
|
82 |
),
|
83 |
]
|
|
|
90 |
"id": datasets.Value("string"),
|
91 |
"title": datasets.Value("string"),
|
92 |
"context": datasets.Value("string"),
|
93 |
+
"query": datasets.Value("string"),
|
94 |
"answers": datasets.Sequence(
|
95 |
{
|
96 |
"text": datasets.Value("string"),
|
|
|
142 |
yield key, {
|
143 |
"title": title,
|
144 |
"context": example["context"],
|
145 |
+
"query": example["question"],
|
146 |
"id": example["id"],
|
147 |
"answers": {
|
148 |
"answer_start": answer_starts,
|