Datasets:
Tasks:
Question Answering
Sub-tasks:
open-domain-qa
Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
found
Source Datasets:
extended|other-yahoo-webscope-l6
Tags:
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- yahoo_answers_qa.py +4 -2
yahoo_answers_qa.py
CHANGED
@@ -17,12 +17,14 @@
|
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
import json
|
20 |
-
import logging
|
21 |
import os
|
22 |
|
23 |
import datasets
|
24 |
|
25 |
|
|
|
|
|
|
|
26 |
_DESCRIPTION = """\
|
27 |
Yahoo Non-Factoid Question Dataset is derived from Yahoo's Webscope L6 collection using machine learning techiques such \
|
28 |
that the questions would contain non-factoid answers.The dataset contains 87,361 questions and their corresponding answers. \
|
@@ -62,7 +64,7 @@ class YahooAnswersQa(datasets.GeneratorBasedBuilder):
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, filepath):
|
65 |
-
|
66 |
if os.path.isdir(filepath):
|
67 |
filepath = os.path.join(filepath, "nfL6.json")
|
68 |
with open(filepath, encoding="utf-8") as f:
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
import json
|
|
|
20 |
import os
|
21 |
|
22 |
import datasets
|
23 |
|
24 |
|
25 |
+
logger = datasets.logging.get_logger(__name__)
|
26 |
+
|
27 |
+
|
28 |
_DESCRIPTION = """\
|
29 |
Yahoo Non-Factoid Question Dataset is derived from Yahoo's Webscope L6 collection using machine learning techiques such \
|
30 |
that the questions would contain non-factoid answers.The dataset contains 87,361 questions and their corresponding answers. \
|
64 |
]
|
65 |
|
66 |
def _generate_examples(self, filepath):
|
67 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
68 |
if os.path.isdir(filepath):
|
69 |
filepath = os.path.join(filepath, "nfL6.json")
|
70 |
with open(filepath, encoding="utf-8") as f:
|