PiC commited on
Commit
c2968b3
1 Parent(s): 66d4090

Change field name "question" to "query"

Browse files
Files changed (1) hide show
  1. 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.2"),
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.2"),
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
- "question": datasets.Value("string"),
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
- "question": example["question"],
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,