Commit
•
2ee35ff
1
Parent(s):
c111061
Update sotab.py
Browse files
sotab.py
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
# See the License for the specific language governing permissions and
|
13 |
# limitations under the License.
|
14 |
-
"""The
|
15 |
|
16 |
import os
|
17 |
|
@@ -20,28 +20,16 @@ import datasets
|
|
20 |
|
21 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
22 |
_CITATION = """\
|
23 |
-
|
24 |
-
title = "Compositional Semantic Parsing on Semi-Structured Tables",
|
25 |
-
author = "Pasupat, Panupong and Liang, Percy",
|
26 |
-
booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
|
27 |
-
month = jul,
|
28 |
-
year = "2015",
|
29 |
-
address = "Beijing, China",
|
30 |
-
publisher = "Association for Computational Linguistics",
|
31 |
-
url = "https://aclanthology.org/P15-1142",
|
32 |
-
doi = "10.3115/v1/P15-1142",
|
33 |
-
pages = "1470--1480",
|
34 |
-
}
|
35 |
"""
|
36 |
|
37 |
# You can copy an official description
|
38 |
_DESCRIPTION = """\
|
39 |
-
This WikiTableQuestions dataset is a large-scale dataset for the task of question answering on semi-structured tables.
|
40 |
"""
|
41 |
|
42 |
-
_HOMEPAGE = "
|
43 |
|
44 |
-
_LICENSE = "
|
45 |
|
46 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
47 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
@@ -51,7 +39,7 @@ _DATA_URL = (
|
|
51 |
|
52 |
|
53 |
class WikiTableQuestions(datasets.GeneratorBasedBuilder):
|
54 |
-
"""
|
55 |
|
56 |
VERSION = datasets.Version("1.0.2")
|
57 |
|
@@ -72,26 +60,6 @@ class WikiTableQuestions(datasets.GeneratorBasedBuilder):
|
|
72 |
version=VERSION,
|
73 |
description="The random-split-1-train/dev.tsv and pristine-unseen-tables.tsv",
|
74 |
),
|
75 |
-
datasets.BuilderConfig(
|
76 |
-
name="random-split-2",
|
77 |
-
version=VERSION,
|
78 |
-
description="The random-split-2-train/dev.tsv and pristine-unseen-tables.tsv",
|
79 |
-
),
|
80 |
-
datasets.BuilderConfig(
|
81 |
-
name="random-split-3",
|
82 |
-
version=VERSION,
|
83 |
-
description="The random-split-3-train/dev.tsv and pristine-unseen-tables.tsv",
|
84 |
-
),
|
85 |
-
datasets.BuilderConfig(
|
86 |
-
name="random-split-4",
|
87 |
-
version=VERSION,
|
88 |
-
description="The random-split-4-train/dev.tsv and pristine-unseen-tables.tsv",
|
89 |
-
),
|
90 |
-
datasets.BuilderConfig(
|
91 |
-
name="random-split-5",
|
92 |
-
version=VERSION,
|
93 |
-
description="The random-split-5-train/dev.tsv and pristine-unseen-tables.tsv",
|
94 |
-
),
|
95 |
]
|
96 |
|
97 |
DEFAULT_CONFIG_NAME = (
|
@@ -102,8 +70,8 @@ class WikiTableQuestions(datasets.GeneratorBasedBuilder):
|
|
102 |
features = datasets.Features(
|
103 |
{
|
104 |
"id": datasets.Value("string"),
|
105 |
-
"
|
106 |
-
"
|
107 |
"table": {
|
108 |
"header": datasets.features.Sequence(datasets.Value("string")),
|
109 |
"rows": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
|
|
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
# See the License for the specific language governing permissions and
|
13 |
# limitations under the License.
|
14 |
+
"""The SOTAB dataset is a large-scale dataset for the task of column type annotation on semi-structured tables."""
|
15 |
|
16 |
import os
|
17 |
|
|
|
20 |
|
21 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
22 |
_CITATION = """\
|
23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
"""
|
25 |
|
26 |
# You can copy an official description
|
27 |
_DESCRIPTION = """\
|
|
|
28 |
"""
|
29 |
|
30 |
+
_HOMEPAGE = ""
|
31 |
|
32 |
+
_LICENSE = ""
|
33 |
|
34 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
35 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
|
|
39 |
|
40 |
|
41 |
class WikiTableQuestions(datasets.GeneratorBasedBuilder):
|
42 |
+
"""The SOTAB dataset is a large-scale dataset for the task of column type annotation on semi-structured tables."""
|
43 |
|
44 |
VERSION = datasets.Version("1.0.2")
|
45 |
|
|
|
60 |
version=VERSION,
|
61 |
description="The random-split-1-train/dev.tsv and pristine-unseen-tables.tsv",
|
62 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
]
|
64 |
|
65 |
DEFAULT_CONFIG_NAME = (
|
|
|
70 |
features = datasets.Features(
|
71 |
{
|
72 |
"id": datasets.Value("string"),
|
73 |
+
"column_index": datasets.Value("int"),
|
74 |
+
"label": datasets.features.Sequence(datasets.Value("string")),
|
75 |
"table": {
|
76 |
"header": datasets.features.Sequence(datasets.Value("string")),
|
77 |
"rows": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
|