Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- adversarial_qa.py +4 -2
adversarial_qa.py
CHANGED
@@ -19,12 +19,14 @@
|
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
22 |
-
import logging
|
23 |
import os
|
24 |
|
25 |
import datasets
|
26 |
|
27 |
|
|
|
|
|
|
|
28 |
_CITATION = """\
|
29 |
@article{bartolo2020beat,
|
30 |
author = {Bartolo, Max and Roberts, Alastair and Welbl, Johannes and Riedel, Sebastian and Stenetorp, Pontus},
|
@@ -165,7 +167,7 @@ class AdversarialQA(datasets.GeneratorBasedBuilder):
|
|
165 |
|
166 |
def _generate_examples(self, filepath, split, model_in_the_loop):
|
167 |
"""This function returns the examples in the raw (text) form."""
|
168 |
-
|
169 |
with open(filepath, encoding="utf-8") as f:
|
170 |
squad = json.load(f)
|
171 |
for article in squad["data"]:
|
|
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
|
|
22 |
import os
|
23 |
|
24 |
import datasets
|
25 |
|
26 |
|
27 |
+
logger = datasets.logging.get_logger(__name__)
|
28 |
+
|
29 |
+
|
30 |
_CITATION = """\
|
31 |
@article{bartolo2020beat,
|
32 |
author = {Bartolo, Max and Roberts, Alastair and Welbl, Johannes and Riedel, Sebastian and Stenetorp, Pontus},
|
|
|
167 |
|
168 |
def _generate_examples(self, filepath, split, model_in_the_loop):
|
169 |
"""This function returns the examples in the raw (text) form."""
|
170 |
+
logger.info("generating examples from = %s", filepath)
|
171 |
with open(filepath, encoding="utf-8") as f:
|
172 |
squad = json.load(f)
|
173 |
for article in squad["data"]:
|