Commit
•
b6a780a
1
Parent(s):
7c7101c
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -182
- dataset_infos.json +0 -1
- default/social_i_qa-train.parquet +3 -0
- default/social_i_qa-validation.parquet +3 -0
- social_i_qa.py +0 -100
.gitattributes
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
---
|
2 |
-
language:
|
3 |
-
- en
|
4 |
-
paperswithcode_id: social-iqa
|
5 |
-
pretty_name: Social Interaction QA
|
6 |
-
dataset_info:
|
7 |
-
features:
|
8 |
-
- name: context
|
9 |
-
dtype: string
|
10 |
-
- name: question
|
11 |
-
dtype: string
|
12 |
-
- name: answerA
|
13 |
-
dtype: string
|
14 |
-
- name: answerB
|
15 |
-
dtype: string
|
16 |
-
- name: answerC
|
17 |
-
dtype: string
|
18 |
-
- name: label
|
19 |
-
dtype: string
|
20 |
-
splits:
|
21 |
-
- name: train
|
22 |
-
num_bytes: 6389954
|
23 |
-
num_examples: 33410
|
24 |
-
- name: validation
|
25 |
-
num_bytes: 376508
|
26 |
-
num_examples: 1954
|
27 |
-
download_size: 2198056
|
28 |
-
dataset_size: 6766462
|
29 |
-
---
|
30 |
-
|
31 |
-
# Dataset Card for "social_i_qa"
|
32 |
-
|
33 |
-
## Table of Contents
|
34 |
-
- [Dataset Description](#dataset-description)
|
35 |
-
- [Dataset Summary](#dataset-summary)
|
36 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
37 |
-
- [Languages](#languages)
|
38 |
-
- [Dataset Structure](#dataset-structure)
|
39 |
-
- [Data Instances](#data-instances)
|
40 |
-
- [Data Fields](#data-fields)
|
41 |
-
- [Data Splits](#data-splits)
|
42 |
-
- [Dataset Creation](#dataset-creation)
|
43 |
-
- [Curation Rationale](#curation-rationale)
|
44 |
-
- [Source Data](#source-data)
|
45 |
-
- [Annotations](#annotations)
|
46 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
47 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
48 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
49 |
-
- [Discussion of Biases](#discussion-of-biases)
|
50 |
-
- [Other Known Limitations](#other-known-limitations)
|
51 |
-
- [Additional Information](#additional-information)
|
52 |
-
- [Dataset Curators](#dataset-curators)
|
53 |
-
- [Licensing Information](#licensing-information)
|
54 |
-
- [Citation Information](#citation-information)
|
55 |
-
- [Contributions](#contributions)
|
56 |
-
|
57 |
-
## Dataset Description
|
58 |
-
|
59 |
-
- **Homepage:** [https://leaderboard.allenai.org/socialiqa/submissions/get-started](https://leaderboard.allenai.org/socialiqa/submissions/get-started)
|
60 |
-
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
61 |
-
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
62 |
-
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
63 |
-
- **Size of downloaded dataset files:** 2.10 MB
|
64 |
-
- **Size of the generated dataset:** 6.45 MB
|
65 |
-
- **Total amount of disk used:** 8.55 MB
|
66 |
-
|
67 |
-
### Dataset Summary
|
68 |
-
|
69 |
-
We introduce Social IQa: Social Interaction QA, a new question-answering benchmark for testing social commonsense intelligence. Contrary to many prior benchmarks that focus on physical or taxonomic knowledge, Social IQa focuses on reasoning about people’s actions and their social implications. For example, given an action like "Jesse saw a concert" and a question like "Why did Jesse do this?", humans can easily infer that Jesse wanted "to see their favorite performer" or "to enjoy the music", and not "to see what's happening inside" or "to see if it works". The actions in Social IQa span a wide variety of social situations, and answer candidates contain both human-curated answers and adversarially-filtered machine-generated candidates. Social IQa contains over 37,000 QA pairs for evaluating models’ abilities to reason about the social implications of everyday events and situations. (Less)
|
70 |
-
|
71 |
-
### Supported Tasks and Leaderboards
|
72 |
-
|
73 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
74 |
-
|
75 |
-
### Languages
|
76 |
-
|
77 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
78 |
-
|
79 |
-
## Dataset Structure
|
80 |
-
|
81 |
-
### Data Instances
|
82 |
-
|
83 |
-
#### default
|
84 |
-
|
85 |
-
- **Size of downloaded dataset files:** 2.10 MB
|
86 |
-
- **Size of the generated dataset:** 6.45 MB
|
87 |
-
- **Total amount of disk used:** 8.55 MB
|
88 |
-
|
89 |
-
An example of 'validation' looks as follows.
|
90 |
-
```
|
91 |
-
{
|
92 |
-
"answerA": "sympathetic",
|
93 |
-
"answerB": "like a person who was unable to help",
|
94 |
-
"answerC": "incredulous",
|
95 |
-
"context": "Sydney walked past a homeless woman asking for change but did not have any money they could give to her. Sydney felt bad afterwards.",
|
96 |
-
"label": "1",
|
97 |
-
"question": "How would you describe Sydney?"
|
98 |
-
}
|
99 |
-
```
|
100 |
-
|
101 |
-
### Data Fields
|
102 |
-
|
103 |
-
The data fields are the same among all splits.
|
104 |
-
|
105 |
-
#### default
|
106 |
-
- `context`: a `string` feature.
|
107 |
-
- `question`: a `string` feature.
|
108 |
-
- `answerA`: a `string` feature.
|
109 |
-
- `answerB`: a `string` feature.
|
110 |
-
- `answerC`: a `string` feature.
|
111 |
-
- `label`: a `string` feature.
|
112 |
-
|
113 |
-
### Data Splits
|
114 |
-
|
115 |
-
| name |train|validation|
|
116 |
-
|-------|----:|---------:|
|
117 |
-
|default|33410| 1954|
|
118 |
-
|
119 |
-
## Dataset Creation
|
120 |
-
|
121 |
-
### Curation Rationale
|
122 |
-
|
123 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
124 |
-
|
125 |
-
### Source Data
|
126 |
-
|
127 |
-
#### Initial Data Collection and Normalization
|
128 |
-
|
129 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
130 |
-
|
131 |
-
#### Who are the source language producers?
|
132 |
-
|
133 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
134 |
-
|
135 |
-
### Annotations
|
136 |
-
|
137 |
-
#### Annotation process
|
138 |
-
|
139 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
140 |
-
|
141 |
-
#### Who are the annotators?
|
142 |
-
|
143 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
144 |
-
|
145 |
-
### Personal and Sensitive Information
|
146 |
-
|
147 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
148 |
-
|
149 |
-
## Considerations for Using the Data
|
150 |
-
|
151 |
-
### Social Impact of Dataset
|
152 |
-
|
153 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
154 |
-
|
155 |
-
### Discussion of Biases
|
156 |
-
|
157 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
158 |
-
|
159 |
-
### Other Known Limitations
|
160 |
-
|
161 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
162 |
-
|
163 |
-
## Additional Information
|
164 |
-
|
165 |
-
### Dataset Curators
|
166 |
-
|
167 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
168 |
-
|
169 |
-
### Licensing Information
|
170 |
-
|
171 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
172 |
-
|
173 |
-
### Citation Information
|
174 |
-
|
175 |
-
```
|
176 |
-
|
177 |
-
```
|
178 |
-
|
179 |
-
|
180 |
-
### Contributions
|
181 |
-
|
182 |
-
Thanks to [@bhavitvyamalik](https://github.com/bhavitvyamalik), [@thomwolf](https://github.com/thomwolf), [@patrickvonplaten](https://github.com/patrickvonplaten), [@lewtun](https://github.com/lewtun) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "We introduce Social IQa: Social Interaction QA, a new question-answering benchmark for testing social commonsense intelligence. Contrary to many prior benchmarks that focus on physical or taxonomic knowledge, Social IQa focuses on reasoning about people\u2019s actions and their social implications. For example, given an action like \"Jesse saw a concert\" and a question like \"Why did Jesse do this?\", humans can easily infer that Jesse wanted \"to see their favorite performer\" or \"to enjoy the music\", and not \"to see what's happening inside\" or \"to see if it works\". The actions in Social IQa span a wide variety of social situations, and answer candidates contain both human-curated answers and adversarially-filtered machine-generated candidates. Social IQa contains over 37,000 QA pairs for evaluating models\u2019 abilities to reason about the social implications of everyday events and situations. (Less)\n", "citation": "\n", "homepage": "https://leaderboard.allenai.org/socialiqa/submissions/get-started", "license": "", "features": {"context": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "answerA": {"dtype": "string", "id": null, "_type": "Value"}, "answerB": {"dtype": "string", "id": null, "_type": "Value"}, "answerC": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "social_i_qa", "config_name": "default", "version": {"version_str": "0.1.0", "description": null, "datasets_version_to_prepare": null, "major": 0, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6389954, "num_examples": 33410, "dataset_name": "social_i_qa"}, "validation": {"name": "validation", "num_bytes": 376508, "num_examples": 1954, "dataset_name": "social_i_qa"}}, "download_checksums": {"https://storage.googleapis.com/ai2-mosaic/public/socialiqa/socialiqa-train-dev.zip": {"num_bytes": 2198056, "checksum": "ee073914a0fc33265cfbcfc50ec20df9b2e07809c3f420f599138d1f394ef5c3"}}, "download_size": 2198056, "dataset_size": 6766462, "size_in_bytes": 8964518}}
|
|
|
|
default/social_i_qa-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7679d119af6487d682f38a5bc44c27190102acdb1b0f0626cd7f224c1dc19f19
|
3 |
+
size 3475354
|
default/social_i_qa-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a46f661f3886a07f8b74d6520657c91c5ccb41edacae17c185b7e4d5bb6ecec3
|
3 |
+
size 203279
|
social_i_qa.py
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
"""TODO(social_i_qa): Add a description here."""
|
2 |
-
|
3 |
-
|
4 |
-
import json
|
5 |
-
import os
|
6 |
-
|
7 |
-
import datasets
|
8 |
-
|
9 |
-
|
10 |
-
# TODO(social_i_qa): BibTeX citation
|
11 |
-
_CITATION = """
|
12 |
-
"""
|
13 |
-
|
14 |
-
# TODO(social_i_qa):
|
15 |
-
_DESCRIPTION = """\
|
16 |
-
We introduce Social IQa: Social Interaction QA, a new question-answering benchmark for testing social commonsense intelligence. Contrary to many prior benchmarks that focus on physical or taxonomic knowledge, Social IQa focuses on reasoning about people’s actions and their social implications. For example, given an action like "Jesse saw a concert" and a question like "Why did Jesse do this?", humans can easily infer that Jesse wanted "to see their favorite performer" or "to enjoy the music", and not "to see what's happening inside" or "to see if it works". The actions in Social IQa span a wide variety of social situations, and answer candidates contain both human-curated answers and adversarially-filtered machine-generated candidates. Social IQa contains over 37,000 QA pairs for evaluating models’ abilities to reason about the social implications of everyday events and situations. (Less)
|
17 |
-
"""
|
18 |
-
_URL = "https://storage.googleapis.com/ai2-mosaic/public/socialiqa/socialiqa-train-dev.zip"
|
19 |
-
|
20 |
-
|
21 |
-
class SocialIQa(datasets.GeneratorBasedBuilder):
|
22 |
-
"""TODO(social_i_qa): Short description of my dataset."""
|
23 |
-
|
24 |
-
# TODO(social_i_qa): Set up version.
|
25 |
-
VERSION = datasets.Version("0.1.0")
|
26 |
-
|
27 |
-
def _info(self):
|
28 |
-
# TODO(social_i_qa): Specifies the datasets.DatasetInfo object
|
29 |
-
return datasets.DatasetInfo(
|
30 |
-
# This is the description that will appear on the datasets page.
|
31 |
-
description=_DESCRIPTION,
|
32 |
-
# datasets.features.FeatureConnectors
|
33 |
-
features=datasets.Features(
|
34 |
-
{
|
35 |
-
# These are the features of your dataset like images, labels ...
|
36 |
-
"context": datasets.Value("string"),
|
37 |
-
"question": datasets.Value("string"),
|
38 |
-
"answerA": datasets.Value("string"),
|
39 |
-
"answerB": datasets.Value("string"),
|
40 |
-
"answerC": datasets.Value("string"),
|
41 |
-
"label": datasets.Value("string"),
|
42 |
-
}
|
43 |
-
),
|
44 |
-
# If there's a common (input, target) tuple from the features,
|
45 |
-
# specify them here. They'll be used if as_supervised=True in
|
46 |
-
# builder.as_dataset.
|
47 |
-
supervised_keys=None,
|
48 |
-
# Homepage of the dataset for documentation
|
49 |
-
homepage="https://leaderboard.allenai.org/socialiqa/submissions/get-started",
|
50 |
-
citation=_CITATION,
|
51 |
-
)
|
52 |
-
|
53 |
-
def _split_generators(self, dl_manager):
|
54 |
-
"""Returns SplitGenerators."""
|
55 |
-
# TODO(social_i_qa): Downloads the data and defines the splits
|
56 |
-
# dl_manager is a datasets.download.DownloadManager that can be used to
|
57 |
-
# download and extract URLs
|
58 |
-
dl_dir = dl_manager.download_and_extract(_URL)
|
59 |
-
dl_dir = os.path.join(dl_dir, "socialiqa-train-dev")
|
60 |
-
return [
|
61 |
-
datasets.SplitGenerator(
|
62 |
-
name=datasets.Split.TRAIN,
|
63 |
-
# These kwargs will be passed to _generate_examples
|
64 |
-
gen_kwargs={
|
65 |
-
"filepath": os.path.join(dl_dir, "train.jsonl"),
|
66 |
-
"labelpath": os.path.join(dl_dir, "train-labels.lst"),
|
67 |
-
},
|
68 |
-
),
|
69 |
-
datasets.SplitGenerator(
|
70 |
-
name=datasets.Split.VALIDATION,
|
71 |
-
# These kwargs will be passed to _generate_examples
|
72 |
-
gen_kwargs={
|
73 |
-
"filepath": os.path.join(dl_dir, "dev.jsonl"),
|
74 |
-
"labelpath": os.path.join(dl_dir, "dev-labels.lst"),
|
75 |
-
},
|
76 |
-
),
|
77 |
-
]
|
78 |
-
|
79 |
-
def _generate_examples(self, filepath, labelpath):
|
80 |
-
"""Yields examples."""
|
81 |
-
# TODO(social_i_qa): Yields (key, example) tuples from the dataset
|
82 |
-
with open(labelpath, encoding="utf-8") as f:
|
83 |
-
labels = [label.strip() for label in f]
|
84 |
-
with open(filepath, encoding="utf-8") as f1:
|
85 |
-
for id_, row in enumerate(f1):
|
86 |
-
data = json.loads(row)
|
87 |
-
label = labels[id_]
|
88 |
-
context = data["context"]
|
89 |
-
answerA = data["answerA"]
|
90 |
-
answerB = data["answerB"]
|
91 |
-
answerC = data["answerC"]
|
92 |
-
question = data["question"]
|
93 |
-
yield id_, {
|
94 |
-
"context": context,
|
95 |
-
"question": question,
|
96 |
-
"answerA": answerA,
|
97 |
-
"answerB": answerB,
|
98 |
-
"answerC": answerC,
|
99 |
-
"label": label,
|
100 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|