PiC commited on
Commit
68049d3
1 Parent(s): 9d2af23

Update phrase_retrieval.py

Browse files
Files changed (1) hide show
  1. phrase_retrieval.py +1 -3
phrase_retrieval.py CHANGED
@@ -126,15 +126,13 @@ class PhraseRetrieval(datasets.GeneratorBasedBuilder):
126
  with open(filepath, encoding="utf-8") as f:
127
  pic_pr = json.load(f)
128
  for example in pic_pr["data"]:
129
- title = example.get("title", "")
130
-
131
  answer_starts = [answer["answer_start"] for answer in example["answers"]]
132
  answers = [answer["text"] for answer in example["answers"]]
133
 
134
  # Features currently used are "context", "question", and "answers".
135
  # Others are extracted here for the ease of future expansions.
136
  yield key, {
137
- "title": title,
138
  "context": example["context"],
139
  "question": example["question"],
140
  "id": example["id"],
 
126
  with open(filepath, encoding="utf-8") as f:
127
  pic_pr = json.load(f)
128
  for example in pic_pr["data"]:
 
 
129
  answer_starts = [answer["answer_start"] for answer in example["answers"]]
130
  answers = [answer["text"] for answer in example["answers"]]
131
 
132
  # Features currently used are "context", "question", and "answers".
133
  # Others are extracted here for the ease of future expansions.
134
  yield key, {
135
+ "title": example["title"],
136
  "context": example["context"],
137
  "question": example["question"],
138
  "id": example["id"],