We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19408f9 commit 3bb7b65Copy full SHA for 3bb7b65
datasets/fever/fever.py
@@ -212,8 +212,8 @@ def _generate_examples(self, filepath):
212
"evidence_sentence_id": -1,
213
}
214
elif self.config.name == "wiki_pages":
215
- for file in filepath:
+ for file_id, file in enumerate(filepath):
216
with open(file, encoding="utf-8") as f:
217
- for id_, row in enumerate(f):
+ for row_id, row in enumerate(f):
218
data = json.loads(row)
219
- yield id_, data
+ yield f"{file_id}_{row_id}", data
0 commit comments