removed logger
Browse files- policies.py +0 -4
policies.py
CHANGED
@@ -5,8 +5,6 @@ import datasets
|
|
5 |
from datasets.tasks import QuestionAnsweringExtractive
|
6 |
|
7 |
|
8 |
-
logger = datasets.logging.get_logger(__name__)
|
9 |
-
|
10 |
_CITATION = """"""
|
11 |
|
12 |
_DESCRIPTION = """\
|
@@ -81,9 +79,7 @@ class PoliciesQA(datasets.GeneratorBasedBuilder):
|
|
81 |
]
|
82 |
|
83 |
def _generate_examples(self, filepath, split):
|
84 |
-
print(os.fspath(filepath))
|
85 |
"""This function returns the examples in the raw (text) form."""
|
86 |
-
logger.info("generating examples from = %s", filepath)
|
87 |
key = 0
|
88 |
with open(filepath, encoding="utf-8") as f:
|
89 |
policies = json.load(f)
|
|
|
5 |
from datasets.tasks import QuestionAnsweringExtractive
|
6 |
|
7 |
|
|
|
|
|
8 |
_CITATION = """"""
|
9 |
|
10 |
_DESCRIPTION = """\
|
|
|
79 |
]
|
80 |
|
81 |
def _generate_examples(self, filepath, split):
|
|
|
82 |
"""This function returns the examples in the raw (text) form."""
|
|
|
83 |
key = 0
|
84 |
with open(filepath, encoding="utf-8") as f:
|
85 |
policies = json.load(f)
|