Commit
•
e7c15f5
1
Parent(s):
72aa912
Update parquet files
Browse files- README.md +0 -164
- unpredictable_full.jsonl → default/unpredictable_full-train-00000-of-00008.parquet +2 -2
- default/unpredictable_full-train-00001-of-00008.parquet +3 -0
- default/unpredictable_full-train-00002-of-00008.parquet +3 -0
- default/unpredictable_full-train-00003-of-00008.parquet +3 -0
- default/unpredictable_full-train-00004-of-00008.parquet +3 -0
- default/unpredictable_full-train-00005-of-00008.parquet +3 -0
- default/unpredictable_full-train-00006-of-00008.parquet +3 -0
- default/unpredictable_full-train-00007-of-00008.parquet +3 -0
- unpredictable_full.py +0 -85
README.md
DELETED
@@ -1,164 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- no-annotation
|
4 |
-
language_creators:
|
5 |
-
- found
|
6 |
-
language:
|
7 |
-
- en
|
8 |
-
license:
|
9 |
-
- apache-2.0
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
pretty_name: UnpredicTable-full
|
13 |
-
size_categories:
|
14 |
-
- 100K<n<1M
|
15 |
-
source_datasets: []
|
16 |
-
task_categories:
|
17 |
-
- multiple-choice
|
18 |
-
- question-answering
|
19 |
-
- zero-shot-classification
|
20 |
-
- text2text-generation
|
21 |
-
- table-question-answering
|
22 |
-
- text-generation
|
23 |
-
- text-classification
|
24 |
-
- tabular-classification
|
25 |
-
task_ids:
|
26 |
-
- multiple-choice-qa
|
27 |
-
- extractive-qa
|
28 |
-
- open-domain-qa
|
29 |
-
- closed-domain-qa
|
30 |
-
- closed-book-qa
|
31 |
-
- open-book-qa
|
32 |
-
- language-modeling
|
33 |
-
- multi-class-classification
|
34 |
-
- natural-language-inference
|
35 |
-
- topic-classification
|
36 |
-
- multi-label-classification
|
37 |
-
- tabular-multi-class-classification
|
38 |
-
- tabular-multi-label-classification
|
39 |
-
---
|
40 |
-
|
41 |
-
|
42 |
-
# Dataset Card for "UnpredicTable-full" - Dataset of Few-shot Tasks from Tables
|
43 |
-
|
44 |
-
## Table of Contents
|
45 |
-
- [Dataset Description](#dataset-description)
|
46 |
-
- [Dataset Summary](#dataset-summary)
|
47 |
-
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
48 |
-
- [Languages](#languages)
|
49 |
-
- [Dataset Structure](#dataset-structure)
|
50 |
-
- [Data Instances](#data-instances)
|
51 |
-
- [Data Fields](#data-instances)
|
52 |
-
- [Data Splits](#data-instances)
|
53 |
-
- [Dataset Creation](#dataset-creation)
|
54 |
-
- [Curation Rationale](#curation-rationale)
|
55 |
-
- [Source Data](#source-data)
|
56 |
-
- [Annotations](#annotations)
|
57 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
58 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
59 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
60 |
-
- [Discussion of Biases](#discussion-of-biases)
|
61 |
-
- [Other Known Limitations](#other-known-limitations)
|
62 |
-
- [Additional Information](#additional-information)
|
63 |
-
- [Dataset Curators](#dataset-curators)
|
64 |
-
- [Licensing Information](#licensing-information)
|
65 |
-
- [Citation Information](#citation-information)
|
66 |
-
|
67 |
-
## Dataset Description
|
68 |
-
|
69 |
-
- **Repository:** https://github.com/AnonCodeShare/few-shot-adaptation
|
70 |
-
- **Paper:** Few-shot Adaptation Works with UnpredicTable Data
|
71 |
-
|
72 |
-
### Dataset Summary
|
73 |
-
|
74 |
-
The UnpredicTable dataset consists of web tables formatted as few-shot tasks for fine-tuning language models to improve their few-shot performance.
|
75 |
-
|
76 |
-
There are several dataset versions available:
|
77 |
-
|
78 |
-
* [UnpredicTable-full](https://huggingface.co/datasets/unpredictable/unpredictable_full): Starting from the initial WTC corpus of 50M tables, we apply our tables-to-tasks procedure to produce our resulting dataset, [UnpredicTable-full](https://huggingface.co/datasets/unpredictable/unpredictable_full), which comprises 413,299 tasks from 23,744 unique websites.
|
79 |
-
|
80 |
-
* [UnpredicTable-unique](https://huggingface.co/datasets/unpredictable/unpredictable_unique): This is the same as [UnpredicTable-full](https://huggingface.co/datasets/unpredictable/unpredictable_full) but filtered to have a maximum of one task per website. [UnpredicTable-unique](https://huggingface.co/datasets/unpredictable/unpredictable_unique) contains exactly 23,744 tasks from 23,744 websites.
|
81 |
-
|
82 |
-
* [UnpredicTable-5k](https://huggingface.co/datasets/unpredictable/unpredictable_5k): This dataset contains 5k random tables from the full dataset.
|
83 |
-
|
84 |
-
* UnpredicTable data subsets based on the website of origin:
|
85 |
-
* [UnpredicTable-support-google-com](https://huggingface.co/datasets/unpredictable/unpredictable_support-google-com)
|
86 |
-
|
87 |
-
### Supported Tasks and Leaderboards
|
88 |
-
|
89 |
-
Since the tables come from the web, the distribution of tasks and topics is very broad. The shape of our dataset is very wide, i.e., we have 1000's of tasks, while each task has only a few examples, compared to most current NLP datasets which are very deep, i.e., 10s of tasks with many examples. This implies that our dataset covers a broad range of potential tasks, e.g., multiple-choice, question-answering, table-question-answering, text-classification, etc.
|
90 |
-
|
91 |
-
The intended use of this dataset is to improve few-shot performance by fine-tuning/pre-training on our dataset.
|
92 |
-
|
93 |
-
### Languages
|
94 |
-
|
95 |
-
English
|
96 |
-
|
97 |
-
## Dataset Structure
|
98 |
-
|
99 |
-
### Data Instances
|
100 |
-
|
101 |
-
Each task is represented as a jsonline file and consists of several few-shot examples. Each example is a dictionary containing a field 'task', which identifies the task, followed by an 'input', 'options', and 'output' field. The 'input' field contains several column elements of the same row in the table, while the 'output' field is a target which represents an individual column of the same row. Each task contains several such examples which can be concatenated as a few-shot task. In the case of multiple choice classification, the 'options' field contains the possible classes that a model needs to choose from.
|
102 |
-
|
103 |
-
There are also additional meta-data fields such as 'pageTitle', 'title', 'outputColName', 'url', 'wdcFile'.
|
104 |
-
|
105 |
-
### Data Fields
|
106 |
-
|
107 |
-
'task': task identifier
|
108 |
-
|
109 |
-
'input': column elements of a specific row in the table.
|
110 |
-
|
111 |
-
'options': for multiple choice classification, it provides the options to choose from.
|
112 |
-
|
113 |
-
'output': target column element of the same row as input.
|
114 |
-
|
115 |
-
'pageTitle': the title of the page containing the table.
|
116 |
-
|
117 |
-
'outputColName': output column name
|
118 |
-
|
119 |
-
'url': url to the website containing the table
|
120 |
-
|
121 |
-
'wdcFile': WDC Web Table Corpus file
|
122 |
-
|
123 |
-
### Data Splits
|
124 |
-
|
125 |
-
The UnpredicTable datasets do not come with additional data splits.
|
126 |
-
|
127 |
-
## Dataset Creation
|
128 |
-
|
129 |
-
### Curation Rationale
|
130 |
-
|
131 |
-
Few-shot training on multi-task datasets has been demonstrated to improve language models' few-shot learning (FSL) performance on new tasks, but it is unclear which training tasks lead to effective downstream task adaptation. Few-shot learning datasets are typically produced with expensive human curation, limiting the scale and diversity of the training tasks available to study. As an alternative source of few-shot data, we automatically extract 413,299 tasks from diverse internet tables. We provide this as a research resource to investigate the relationship between training data and few-shot learning.
|
132 |
-
|
133 |
-
### Source Data
|
134 |
-
|
135 |
-
#### Initial Data Collection and Normalization
|
136 |
-
|
137 |
-
We use internet tables from the English-language Relational Subset of the WDC Web Table Corpus 2015 (WTC). The WTC dataset tables were extracted from the July 2015 Common Crawl web corpus (http://webdatacommons.org/webtables/2015/EnglishStatistics.html). The dataset contains 50,820,165 tables from 323,160 web domains. We then convert the tables into few-shot learning tasks. Please see our publication for more details on the data collection and conversion pipeline.
|
138 |
-
|
139 |
-
#### Who are the source language producers?
|
140 |
-
|
141 |
-
The dataset is extracted from [WDC Web Table Corpora](http://webdatacommons.org/webtables/).
|
142 |
-
|
143 |
-
### Personal and Sensitive Information
|
144 |
-
|
145 |
-
The data was extracted from [WDC Web Table Corpora](http://webdatacommons.org/webtables/), which in turn extracted tables from the [Common Crawl](https://commoncrawl.org/). We did not filter the data in any way. Thus any user identities or otherwise sensitive information (e.g., data that reveals racial or ethnic origins, sexual orientations, religious beliefs, political opinions or union memberships, or locations; financial or health data; biometric or genetic data; forms of government identification, such as social security numbers; criminal history, etc.) might be contained in our dataset.
|
146 |
-
|
147 |
-
## Considerations for Using the Data
|
148 |
-
|
149 |
-
### Social Impact of Dataset
|
150 |
-
|
151 |
-
This dataset is intended for use as a research resource to investigate the relationship between training data and few-shot learning. As such, it contains high- and low-quality data, as well as diverse content that may be untruthful or inappropriate. Without careful investigation, it should not be used for training models that will be deployed for use in decision-critical or user-facing situations.
|
152 |
-
|
153 |
-
### Discussion of Biases
|
154 |
-
|
155 |
-
Since our dataset contains tables that are scraped from the web, it will also contain many toxic, racist, sexist, and otherwise harmful biases and texts. We have not run any analysis on the biases prevalent in our datasets. Neither have we explicitly filtered the content. This implies that a model trained on our dataset may potentially reflect harmful biases and toxic text that exist in our dataset.
|
156 |
-
|
157 |
-
### Other Known Limitations
|
158 |
-
|
159 |
-
No additional known limitations.
|
160 |
-
|
161 |
-
## Additional Information
|
162 |
-
|
163 |
-
### Licensing Information
|
164 |
-
Apache 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unpredictable_full.jsonl → default/unpredictable_full-train-00000-of-00008.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:704f33f00487e796c8811813068548f675b3bd69fb94861aeaab5769867286dd
|
3 |
+
size 102565080
|
default/unpredictable_full-train-00001-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e070a0a45e12b805d8718327e1e78b6f4734ec61805d44852f9ade6d35972587
|
3 |
+
size 107843067
|
default/unpredictable_full-train-00002-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80abcc43cac88e6e1ba83cdcb23fce562924bd597c715b1ebd93689fc20e769c
|
3 |
+
size 104384489
|
default/unpredictable_full-train-00003-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da2ee37cec6171094f42cfd4712a56e3465de4d60211eaa19c3a488ffb5222ef
|
3 |
+
size 102931191
|
default/unpredictable_full-train-00004-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7cf291706cc3ea253d78aaa836896edaeac05275ec996d59fdd69cdf8763dd7c
|
3 |
+
size 105097367
|
default/unpredictable_full-train-00005-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c6e8ae5d52a0ab4fd4c0524aa73af78b5a48e7adfb25e9981827ec08ca1f0a75
|
3 |
+
size 107517018
|
default/unpredictable_full-train-00006-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22809e1f41873ee515cc388cd2a504623ad5e1ede46be3ab466fd73b178a0481
|
3 |
+
size 104402964
|
default/unpredictable_full-train-00007-of-00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96062acd2771636d56fa4f8dfb6d8e96b0f8ba75190f81c0ceded91e4fea6305
|
3 |
+
size 83092656
|
unpredictable_full.py
DELETED
@@ -1,85 +0,0 @@
|
|
1 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
-
# you may not use this file except in compliance with the License.
|
5 |
-
# You may obtain a copy of the License at
|
6 |
-
#
|
7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
-
#
|
9 |
-
# Unless required by applicable law or agreed to in writing, software
|
10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
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 |
-
"""This loads the UnpredicTable-full dataset."""
|
15 |
-
|
16 |
-
import json
|
17 |
-
import os
|
18 |
-
import pandas as pd
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
|
22 |
-
|
23 |
-
_DESCRIPTION = """\
|
24 |
-
The UnpredicTable dataset consists of web tables formatted as few-shot tasks for fine-tuning language models to improve their few-shot performance. For more details please see the accompanying dataset card.
|
25 |
-
"""
|
26 |
-
|
27 |
-
_LICENSE = "Apache 2.0"
|
28 |
-
|
29 |
-
_URL = "https://huggingface.co/datasets/unpredictable/unpredictable_full/resolve/main/unpredictable_full.jsonl"
|
30 |
-
|
31 |
-
logger = datasets.logging.get_logger(__name__)
|
32 |
-
|
33 |
-
|
34 |
-
class UnpredicTable(datasets.GeneratorBasedBuilder):
|
35 |
-
"""
|
36 |
-
The UnpredicTable dataset consists of web tables formatted as few-shot tasks for fine-tuning language models to improve their few-shot performance. For more details please see the accompanying dataset card.
|
37 |
-
"""
|
38 |
-
|
39 |
-
VERSION = datasets.Version("1.0.0")
|
40 |
-
|
41 |
-
def _info(self):
|
42 |
-
features = datasets.Features(
|
43 |
-
{
|
44 |
-
"task": datasets.Value("string"),
|
45 |
-
"input": datasets.Value("string"),
|
46 |
-
"output": datasets.Value("string"),
|
47 |
-
"options": datasets.Sequence([datasets.Value("string")]),
|
48 |
-
"pageTitle": datasets.Value("string"),
|
49 |
-
"outputColName": datasets.Value("string"),
|
50 |
-
"url": datasets.Value("string"),
|
51 |
-
"wdcFile": datasets.Value("string")
|
52 |
-
}
|
53 |
-
)
|
54 |
-
return datasets.DatasetInfo(
|
55 |
-
description=_DESCRIPTION,
|
56 |
-
features=features,
|
57 |
-
license=_LICENSE,
|
58 |
-
)
|
59 |
-
|
60 |
-
def _split_generators(self, dl_manager):
|
61 |
-
"""Returns SplitGenerators."""
|
62 |
-
data_dir = dl_manager.download_and_extract(_URL)
|
63 |
-
return [
|
64 |
-
datasets.SplitGenerator(
|
65 |
-
name=datasets.Split.TRAIN,
|
66 |
-
gen_kwargs={"filepath": data_dir},
|
67 |
-
),
|
68 |
-
]
|
69 |
-
|
70 |
-
def _generate_examples(self, filepath):
|
71 |
-
"""Yields examples."""
|
72 |
-
with open(filepath, encoding="utf-8") as f:
|
73 |
-
for i, row in enumerate(f):
|
74 |
-
data = json.loads(row)
|
75 |
-
key = f"{data['task']}_{i}"
|
76 |
-
yield key, {
|
77 |
-
"task": data["task"],
|
78 |
-
"input": data["input"],
|
79 |
-
"output": data["output"],
|
80 |
-
"options": data["options"],
|
81 |
-
"pageTitle": data["pageTitle"],
|
82 |
-
"outputColName": data["outputColName"],
|
83 |
-
"url": data["url"],
|
84 |
-
"wdcFile": data["wdcFile"],
|
85 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|