Datasets:
Tasks:
Text2Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
1K - 10K
ArXiv:
Tags:
text-to-sql
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
spider.py
CHANGED
@@ -17,11 +17,13 @@
|
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
import json
|
20 |
-
import logging
|
21 |
|
22 |
import datasets
|
23 |
|
24 |
|
|
|
|
|
|
|
25 |
_CITATION = """\
|
26 |
@article{yu2018spider,
|
27 |
title={Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task},
|
@@ -93,7 +95,7 @@ class Spider(datasets.GeneratorBasedBuilder):
|
|
93 |
|
94 |
def _generate_examples(self, data_filepath):
|
95 |
"""This function returns the examples in the raw (text) form."""
|
96 |
-
|
97 |
with open(data_filepath, encoding="utf-8") as f:
|
98 |
spider = json.load(f)
|
99 |
for idx, sample in enumerate(spider):
|
|
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
import json
|
|
|
20 |
|
21 |
import datasets
|
22 |
|
23 |
|
24 |
+
logger = datasets.logging.get_logger(__name__)
|
25 |
+
|
26 |
+
|
27 |
_CITATION = """\
|
28 |
@article{yu2018spider,
|
29 |
title={Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task},
|
|
|
95 |
|
96 |
def _generate_examples(self, data_filepath):
|
97 |
"""This function returns the examples in the raw (text) form."""
|
98 |
+
logger.info("generating examples from = %s", data_filepath)
|
99 |
with open(data_filepath, encoding="utf-8") as f:
|
100 |
spider = json.load(f)
|
101 |
for idx, sample in enumerate(spider):
|