Vaibhav Adlakha commited on
Commit
58c1c15
1 Parent(s): f6de7a8

additional answers

Browse files
Files changed (1) hide show
  1. TopiOCQA.py +9 -9
TopiOCQA.py CHANGED
@@ -73,14 +73,14 @@ class TopiOCQA(datasets.GeneratorBasedBuilder):
73
  "Rationale": datasets.Value("string"),
74
  "is_nq": datasets.Value("bool"),
75
  "Context": datasets.features.Sequence(datasets.Value("string")),
76
- # "Additional_answers": datasets.features.Sequence(
77
- # {
78
- # "Answer": datasets.Value("string"),
79
- # "Topic": datasets.Value("string"),
80
- # "Topic_section": datasets.Value("string"),
81
- # "Rationale": datasets.Value("string"),
82
- # }
83
- # ),
84
  }
85
  ),
86
  supervised_keys=None,
@@ -112,7 +112,7 @@ class TopiOCQA(datasets.GeneratorBasedBuilder):
112
  "Rationale": data["Rationale"],
113
  "is_nq": data["is_nq"],
114
  "Context": data["Context"],
115
- # "Additional_answers": data["Additional_answers"],
116
  }
117
  key += 1
118
 
 
73
  "Rationale": datasets.Value("string"),
74
  "is_nq": datasets.Value("bool"),
75
  "Context": datasets.features.Sequence(datasets.Value("string")),
76
+ "Additional_answers": datasets.features.Sequence(
77
+ {
78
+ "Answer": datasets.Value("string"),
79
+ "Topic": datasets.Value("string"),
80
+ "Topic_section": datasets.Value("string"),
81
+ "Rationale": datasets.Value("string"),
82
+ }
83
+ ),
84
  }
85
  ),
86
  supervised_keys=None,
 
112
  "Rationale": data["Rationale"],
113
  "is_nq": data["is_nq"],
114
  "Context": data["Context"],
115
+ "Additional_answers": data["Additional_answers"],
116
  }
117
  key += 1
118