parquet-converter commited on
Commit
ca390b7
1 Parent(s): 932ad9c

Update parquet files

Browse files
Files changed (5) hide show
  1. .gitattributes +0 -27
  2. README.md +0 -264
  3. circa.py +0 -153
  4. dataset_infos.json +0 -1
  5. default/circa-train.parquet +3 -0
.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,264 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - crowdsourced
6
- language:
7
- - en
8
- license:
9
- - cc-by-4.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 10K<n<100K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - text-classification
18
- task_ids:
19
- - multi-class-classification
20
- paperswithcode_id: circa
21
- pretty_name: CIRCA
22
- tags:
23
- - question-answer-pair-classification
24
- dataset_info:
25
- features:
26
- - name: context
27
- dtype: string
28
- - name: question-X
29
- dtype: string
30
- - name: canquestion-X
31
- dtype: string
32
- - name: answer-Y
33
- dtype: string
34
- - name: judgements
35
- dtype: string
36
- - name: goldstandard1
37
- dtype:
38
- class_label:
39
- names:
40
- 0: 'Yes'
41
- 1: 'No'
42
- 2: In the middle, neither yes nor no
43
- 3: Probably yes / sometimes yes
44
- 4: Probably no
45
- 5: Yes, subject to some conditions
46
- 6: Other
47
- 7: I am not sure how X will interpret Y’s answer
48
- - name: goldstandard2
49
- dtype:
50
- class_label:
51
- names:
52
- 0: 'Yes'
53
- 1: 'No'
54
- 2: In the middle, neither yes nor no
55
- 3: Yes, subject to some conditions
56
- 4: Other
57
- splits:
58
- - name: train
59
- num_bytes: 8149489
60
- num_examples: 34268
61
- download_size: 7766077
62
- dataset_size: 8149489
63
- ---
64
-
65
- # Dataset Card for CIRCA
66
-
67
- ## Table of Contents
68
- - [Dataset Description](#dataset-description)
69
- - [Dataset Summary](#dataset-summary)
70
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
71
- - [Languages](#languages)
72
- - [Dataset Structure](#dataset-structure)
73
- - [Data Instances](#data-instances)
74
- - [Data Fields](#data-fields)
75
- - [Data Splits](#data-splits)
76
- - [Dataset Creation](#dataset-creation)
77
- - [Curation Rationale](#curation-rationale)
78
- - [Source Data](#source-data)
79
- - [Annotations](#annotations)
80
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
81
- - [Considerations for Using the Data](#considerations-for-using-the-data)
82
- - [Social Impact of Dataset](#social-impact-of-dataset)
83
- - [Discussion of Biases](#discussion-of-biases)
84
- - [Other Known Limitations](#other-known-limitations)
85
- - [Additional Information](#additional-information)
86
- - [Dataset Curators](#dataset-curators)
87
- - [Licensing Information](#licensing-information)
88
- - [Citation Information](#citation-information)
89
- - [Contributions](#contributions)
90
-
91
- ## Dataset Description
92
-
93
- - **Homepage:** [CIRCA homepage](https://github.com/google-research-datasets/circa)
94
- - **Repository:** [CIRCA repository](https://github.com/google-research-datasets/circa)
95
- - **Paper:** ["I’d rather just go to bed”: Understanding Indirect Answers](https://arxiv.org/abs/2010.03450)
96
- - **Point of Contact:** [Circa team, Google](circa@google.com)
97
-
98
- ### Dataset Summary
99
-
100
- The Circa (meaning ‘approximately’) dataset aims to help machine learning systems to solve the problem of interpreting indirect answers to polar questions.
101
-
102
- The dataset contains pairs of yes/no questions and indirect answers, together with annotations for the interpretation of the answer. The data is collected in 10 different social conversational situations (eg. food preferences of a friend).
103
-
104
- The following are the situational contexts for the dialogs in the data.
105
-
106
- ```
107
- 1. X wants to know about Y’s food preferences
108
- 2. X wants to know what activities Y likes to do during weekends.
109
- 3. X wants to know what sorts of books Y likes to read.
110
- 4. Y has just moved into a neighbourhood and meets his/her new neighbour X.
111
- 5. X and Y are colleagues who are leaving work on a Friday at the same time.
112
- 6. X wants to know about Y's music preferences.
113
- 7. Y has just travelled from a different city to meet X.
114
- 8. X and Y are childhood neighbours who unexpectedly run into each other at a cafe.
115
- 9. Y has just told X that he/she is thinking of buying a flat in New York.
116
- 10. Y has just told X that he/she is considering switching his/her job.
117
- ```
118
-
119
- ### Supported Tasks and Leaderboards
120
-
121
- [More Information Needed]
122
-
123
- ### Languages
124
-
125
- The text in the dataset is in English.
126
-
127
- ## Dataset Structure
128
-
129
- ### Data Instances
130
-
131
- The columns indicate:
132
-
133
- ```
134
- 1. id : unique id for the question-answer pair
135
-
136
- 2. context : the social situation for the dialogue. One of 10 situations (see next section). Each
137
- situation is a dialogue between a person who poses the question (X) and the person who
138
- answers (Y).
139
-
140
- 3. question-X : the question posed by X
141
-
142
- 4. canquestion-X : a (automatically) rewritten version of question into declarative form
143
- Eg. Do you like Italian? --> I like Italian. See the paper for details.
144
-
145
- 5. answer-Y : the answer given by Y to X
146
-
147
- 6. judgements : the interpretations for the QA pair from 5 annotators. The value is a list of 5 strings,
148
- separated by the token ‘#’
149
-
150
- 7. goldstandard1 : a gold standard majority judgement from the annotators. The value is the most common
151
- interpretation and picked by at least 3 (out of 5 annotators). When a majority
152
- judgement was not reached by the above criteria, the value is ‘NA’
153
-
154
- 8. goldstandard2 : Here the labels ‘Probably yes / sometimes yes’, ‘Probably no', and 'I am not sure how
155
- X will interpret Y’s answer' are mapped respectively to ‘Yes’, ‘No’, and 'In the
156
- middle, neither yes nor no’ before computing the majority. Still the label must be given
157
- at least 3 times to become the majority choice. This method represents a less strict way
158
- of analyzing the interpretations.
159
- ```
160
-
161
- ### Data Fields
162
-
163
- ```
164
- id : 1
165
- context : X wants to know about Y's food preferences.
166
- question-X : Are you vegan?
167
- canquestion-X : I am vegan.
168
- answer-Y : I love burgers too much.
169
- judgements : no#no#no#no#no
170
- goldstandard1 : no (label(s) used for the classification task)
171
- goldstandard2 : no (label(s) used for the classification task)
172
- ```
173
-
174
- ### Data Splits
175
-
176
- There are no explicit train/val/test splits in this dataset.
177
-
178
- ## Dataset Creation
179
-
180
- ### Curation Rationale
181
-
182
- They revisited a pragmatic inference problem in dialog: Understanding indirect responses to questions. Humans can interpret ‘I’m starving.’ in response to ‘Hungry?’, even without direct cue words such as ‘yes’ and ‘no’. In dialog systems, allowing natural responses rather than closed vocabularies would be similarly beneficial. However, today’s systems are only as sensitive to these pragmatic moves as their language model allows. They create and release the first large-scale English language corpus ‘Circa’ with 34,268 (polar question, indirect answer) pairs to enable progress on this task.
183
-
184
- ### Source Data
185
-
186
- #### Initial Data Collection and Normalization
187
-
188
- The QA pairs and judgements were collected using crowd annotations in three phases. They recruited English native speakers. The full descriptions of the data collection and quality control are present in [EMNLP 2020 paper](https://arxiv.org/pdf/2010.03450.pdf). Below is a brief overview only.
189
-
190
- Phase 1: In the first phase, they collected questions only. They designed 10 imaginary social situations which give the annotator a context for the conversation. Examples are:
191
- ```
192
- ‘asking a friend for food preferences’
193
- ‘meeting your childhood neighbour’
194
- ‘your friend wants to buy a flat in New York’
195
- ```
196
- Annotators were asked to suggest questions which could be asked in each situation, such that each question only requires a ‘yes’ or ‘no’ answer. 100 annotators produced 5 questions each for the 10 situations, resulting in 5000 questions.
197
-
198
- Phase 2: Here they focused on eliciting answers to the questions. They sampled 3500 questions from our previous set. For each question, They collected possible answers from 10 different annotators. The annotators were instructed to provide a natural phrase or a sentence as the answer and to avoid the use of explicit ‘yes’ and ‘no’ words.
199
-
200
- Phase 3: Finally the QA pairs (34,268) were given to a third set of annotators who were asked how the question seeker would likely interpret a particular answer. These annotators had the following options to choose from:
201
- ```
202
- * 'Yes'
203
- * 'Probably yes' / 'sometimes yes'
204
- * 'Yes, subject to some conditions'
205
- * 'No'
206
- * 'Probably no'
207
- * 'In the middle, neither yes nor no'
208
- * 'I am not sure how X will interpret Y's answer'
209
- ```
210
-
211
- #### Who are the source language producers?
212
-
213
- The rest of the data apart from 10 initial questions was collected using crowd workers. They ran pilots for each step of data collection, and perused their results manually to ensure clarity in guidelines, and quality of the data. They also recruited native English speakers, mostly from the USA, and a few from the UK and Canada. They did not collect any further information about the crowd workers.
214
-
215
- ### Annotations
216
-
217
- #### Annotation process
218
-
219
- [More Information Needed]
220
-
221
- #### Who are the annotators?
222
-
223
- The rest of the data apart from 10 initial questions was collected using crowd workers. They ran pilots for each step of data collection, and perused their results manually to ensure clarity in guidelines, and quality of the data. They also recruited native English speakers, mostly from the USA, and a few from the UK and Canada. They did not collect any further information about the crowd workers.
224
-
225
- ### Personal and Sensitive Information
226
-
227
- [More Information Needed]
228
-
229
- ## Considerations for Using the Data
230
-
231
- ### Social Impact of Dataset
232
-
233
- [More Information Needed]
234
-
235
- ### Discussion of Biases
236
-
237
- [More Information Needed]
238
-
239
- ### Other Known Limitations
240
-
241
- [More Information Needed]
242
-
243
- ## Additional Information
244
-
245
- ### Dataset Curators
246
-
247
- This dataset is the work of Annie Louis, Dan Roth, and Filip Radlinski from Google LLC.
248
-
249
- ### Licensing Information
250
-
251
- This dataset was made available under the Creative Commons Attribution 4.0 License. A full copy of the license can be found at https://creativecommons.org/licenses/by-sa/4.0/e and link to the license webpage if available.
252
-
253
- ### Citation Information
254
- ```
255
- @InProceedings{louis_emnlp2020,
256
- author = "Annie Louis and Dan Roth and Filip Radlinski",
257
- title = ""{I}'d rather just go to bed": {U}nderstanding {I}ndirect {A}nswers",
258
- booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing",
259
- year = "2020",
260
- }
261
- ```
262
- ### Contributions
263
-
264
- Thanks to [@bhavitvyamalik](https://github.com/bhavitvyamalik) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
circa.py DELETED
@@ -1,153 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Dataset containing polar questions and indirect answers."""
16
-
17
-
18
- import csv
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """\
24
- @InProceedings{louis_emnlp2020,
25
- author = "Annie Louis and Dan Roth and Filip Radlinski",
26
- title = ""{I}'d rather just go to bed": {U}nderstanding {I}ndirect {A}nswers",
27
- booktitle = "Proceedings of the 2020 Conference on Empirical Methods
28
- in Natural Language Processing",
29
- year = "2020",
30
- }
31
- """
32
-
33
- _DESCRIPTION = """\
34
- The Circa (meaning ‘approximately’) dataset aims to help machine learning systems
35
- to solve the problem of interpreting indirect answers to polar questions.
36
-
37
- The dataset contains pairs of yes/no questions and indirect answers, together with
38
- annotations for the interpretation of the answer. The data is collected in 10
39
- different social conversational situations (eg. food preferences of a friend).
40
-
41
- NOTE: There might be missing labels in the dataset and we have replaced them with -1.
42
- The original dataset contains no train/dev/test splits.
43
- """
44
-
45
- _LICENSE = "Creative Commons Attribution 4.0 License"
46
-
47
- _DATA_URL = "https://raw.githubusercontent.com/google-research-datasets/circa/main/circa-data.tsv"
48
-
49
-
50
- class Circa(datasets.GeneratorBasedBuilder):
51
- """Dataset containing polar questions and indirect answers."""
52
-
53
- VERSION = datasets.Version("1.1.0")
54
-
55
- def _info(self):
56
- features = datasets.Features(
57
- {
58
- "context": datasets.Value("string"),
59
- "question-X": datasets.Value("string"),
60
- "canquestion-X": datasets.Value("string"),
61
- "answer-Y": datasets.Value("string"),
62
- "judgements": datasets.Value("string"),
63
- "goldstandard1": datasets.features.ClassLabel(
64
- names=[
65
- "Yes",
66
- "No",
67
- "In the middle, neither yes nor no",
68
- "Probably yes / sometimes yes",
69
- "Probably no",
70
- "Yes, subject to some conditions",
71
- "Other",
72
- "I am not sure how X will interpret Y’s answer",
73
- ]
74
- ),
75
- "goldstandard2": datasets.features.ClassLabel(
76
- names=[
77
- "Yes",
78
- "No",
79
- "In the middle, neither yes nor no",
80
- "Yes, subject to some conditions",
81
- "Other",
82
- ]
83
- ),
84
- }
85
- )
86
- return datasets.DatasetInfo(
87
- # This is the description that will appear on the datasets page.
88
- description=_DESCRIPTION,
89
- # This defines the different columns of the dataset and their types
90
- features=features, # Here we define them above because they are different between the two configurations
91
- # If there's a common (input, target) tuple from the features,
92
- # specify them here. They'll be used if as_supervised=True in
93
- # builder.as_dataset.
94
- supervised_keys=None,
95
- # Homepage of the dataset for documentation
96
- homepage="https://github.com/google-research-datasets/circa",
97
- # License for the dataset if available
98
- license=_LICENSE,
99
- # Citation for the dataset
100
- citation=_CITATION,
101
- )
102
-
103
- def _split_generators(self, dl_manager):
104
- train_path = dl_manager.download_and_extract(_DATA_URL)
105
- return [
106
- datasets.SplitGenerator(
107
- name=datasets.Split.TRAIN,
108
- # These kwargs will be passed to _generate_examples
109
- gen_kwargs={
110
- "filepath": train_path,
111
- "split": datasets.Split.TRAIN,
112
- },
113
- ),
114
- ]
115
-
116
- def _generate_examples(self, filepath, split):
117
- with open(filepath, encoding="utf-8") as f:
118
- goldstandard1_labels = [
119
- "Yes",
120
- "No",
121
- "In the middle, neither yes nor no",
122
- "Probably yes / sometimes yes",
123
- "Probably no",
124
- "Yes, subject to some conditions",
125
- "Other",
126
- "I am not sure how X will interpret Y’s answer",
127
- ]
128
- goldstandard2_labels = [
129
- "Yes",
130
- "No",
131
- "In the middle, neither yes nor no",
132
- "Yes, subject to some conditions",
133
- "Other",
134
- ]
135
- data = csv.reader(f, delimiter="\t")
136
- next(data, None) # skip the headers
137
- for id_, row in enumerate(data):
138
- row = [x if x != "nan" else -1 for x in row]
139
- _, context, question_X, canquestion_X, answer_Y, judgements, goldstandard1, goldstandard2 = row
140
- if goldstandard1 not in goldstandard1_labels:
141
- goldstandard1 = -1
142
- if goldstandard2 not in goldstandard2_labels:
143
- goldstandard2 = -1
144
-
145
- yield id_, {
146
- "context": context,
147
- "question-X": question_X,
148
- "canquestion-X": canquestion_X,
149
- "answer-Y": answer_Y,
150
- "judgements": judgements,
151
- "goldstandard1": goldstandard1,
152
- "goldstandard2": goldstandard2,
153
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "The Circa (meaning \u2018approximately\u2019) dataset aims to help machine learning systems\nto solve the problem of interpreting indirect answers to polar questions.\n\nThe dataset contains pairs of yes/no questions and indirect answers, together with\nannotations for the interpretation of the answer. The data is collected in 10\ndifferent social conversational situations (eg. food preferences of a friend).\n\nNOTE: There might be missing labels in the dataset and we have replaced them with -1.\nThe original dataset contains no train/dev/test splits.\n", "citation": "@InProceedings{louis_emnlp2020,\n author = \"Annie Louis and Dan Roth and Filip Radlinski\",\n title = \"\"{I}'d rather just go to bed\": {U}nderstanding {I}ndirect {A}nswers\",\n booktitle = \"Proceedings of the 2020 Conference on Empirical Methods\n in Natural Language Processing\",\n year = \"2020\",\n}\n", "homepage": "https://github.com/google-research-datasets/circa", "license": "Creative Commons Attribution 4.0 License", "features": {"context": {"dtype": "string", "id": null, "_type": "Value"}, "question-X": {"dtype": "string", "id": null, "_type": "Value"}, "canquestion-X": {"dtype": "string", "id": null, "_type": "Value"}, "answer-Y": {"dtype": "string", "id": null, "_type": "Value"}, "judgements": {"dtype": "string", "id": null, "_type": "Value"}, "goldstandard1": {"num_classes": 8, "names": ["Yes", "No", "In the middle, neither yes nor no", "Probably yes / sometimes yes", "Probably no", "Yes, subject to some conditions", "Other", "I am not sure how X will interpret Y\u2019s answer"], "names_file": null, "id": null, "_type": "ClassLabel"}, "goldstandard2": {"num_classes": 5, "names": ["Yes", "No", "In the middle, neither yes nor no", "Yes, subject to some conditions", "Other"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "circa", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8149489, "num_examples": 34268, "dataset_name": "circa"}}, "download_checksums": {"https://raw.githubusercontent.com/google-research-datasets/circa/main/circa-data.tsv": {"num_bytes": 7766077, "checksum": "98454df6b716dd7ff5f83a3db298849f05414688e81c2ee21b8e5a548ed897aa"}}, "download_size": 7766077, "post_processing_size": null, "dataset_size": 8149489, "size_in_bytes": 15915566}}
 
 
default/circa-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd0493413f4c35dba58c7a1cf382b2b2a80f0c0652c26bf39101c69e49e2f584
3
+ size 2278279