system HF staff commited on
Commit
0345f4f
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - unknown
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - conditional-text-generation
18
+ - text-scoring
19
+ task_ids:
20
+ - text-scoring-other-evaluating-dialogue-systems
21
+ ---
22
+
23
+ # Dataset Card for [More Information Needed]
24
+
25
+ ## Table of Contents
26
+
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-instances)
34
+ - [Data Splits](#data-instances)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Annotations](#annotations)
39
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
41
+ - [Social Impact of Dataset](#social-impact-of-dataset)
42
+ - [Discussion of Biases](#discussion-of-biases)
43
+ - [Other Known Limitations](#other-known-limitations)
44
+ - [Additional Information](#additional-information)
45
+ - [Dataset Curators](#dataset-curators)
46
+ - [Licensing Information](#licensing-information)
47
+ - [Citation Information](#citation-information)
48
+
49
+ ## Dataset Description
50
+
51
+ - **Homepage:** https://github.com/aliannejadi/ClariQ
52
+ - **Repository:** https://github.com/aliannejadi/ClariQ
53
+ - **Paper:** https://arxiv.org/abs/2009.11352
54
+ - **Leaderboard:** [More Information Needed]
55
+ - **Point of Contact:** [More Information Needed]
56
+
57
+ ### Dataset Summary
58
+
59
+ The Conv AI 3 challenge is organized as part of the Search-oriented Conversational AI (SCAI) EMNLP workshop in 2020. The main aim of the conversational systems is to return an appropriate answer in response to the user requests. However, some user requests might be ambiguous. In Information Retrieval (IR) settings such a situation is handled mainly through the diversification of search result page. It is however much more challenging in dialogue settings. Hence, we aim to study the following situation for dialogue settings:
60
+
61
+ - a user is asking an ambiguous question (where ambiguous question is a question to which one can return > 1 possible answers)
62
+ - the system must identify that the question is ambiguous, and, instead of trying to answer it directly, ask a good clarifying question.
63
+
64
+ ### Supported Tasks and Leaderboards
65
+
66
+ [More Information Needed]
67
+
68
+ ### Languages
69
+
70
+ [More Information Needed]
71
+
72
+ ## Dataset Structure
73
+
74
+ ### Data Instances
75
+
76
+ Here are a few examples from the dataset:
77
+ ```
78
+ {'topic_id': 8,
79
+ 'facet_id': 'F0968',
80
+ 'initial_request': 'I want to know about appraisals.',
81
+ 'topic_desc': 'Find information about the appraisals in nearby companies.',
82
+ 'clarification_need': 2,
83
+ 'question_id': 'F0001',
84
+ 'question': 'are you looking for a type of appraiser',
85
+ 'answer': 'im looking for nearby companies that do home appraisals',
86
+ 'facet_desc': 'Get the TYPE of Appraisals'
87
+ 'conversation_context': [],
88
+ 'context_id': 968}
89
+ ```
90
+
91
+ ```
92
+ {'topic_id': 8,
93
+ 'facet_id': 'F0969',
94
+ 'initial_request': 'I want to know about appraisals.',
95
+ 'topic_desc': 'Find information about the type of appraisals.',
96
+ 'clarification_need': 2,
97
+ 'question_id': 'F0005',
98
+ 'question': 'are you looking for a type of appraiser',
99
+ 'facet_desc': 'Get the TYPE of Appraisals'
100
+ 'answer': 'yes jewelry',
101
+ 'conversation_context': [],
102
+ 'context_id': 969}
103
+ ```
104
+
105
+ ```
106
+ {'topic_id': 293,
107
+ 'facet_id': 'F0729',
108
+ 'initial_request': 'Tell me about the educational advantages of social networking sites.',
109
+ 'topic_desc': 'Find information about the educational benefits of the social media sites',
110
+ 'clarification_need': 2,
111
+ 'question_id': 'F0009'
112
+ 'question': 'which social networking sites would you like information on',
113
+ 'answer': 'i don have a specific one in mind just overall educational benefits to social media sites',
114
+ 'facet_desc': 'Detailed information about the Networking Sites.'
115
+ 'conversation_context': [{'question': 'what level of schooling are you interested in gaining the advantages to social networking sites', 'answer': 'all levels'}, {'question': 'what type of educational advantages are you seeking from social networking', 'answer': 'i just want to know if there are any'}],
116
+ 'context_id': 976573}
117
+ ```
118
+ ### Data Fields
119
+
120
+ - `topic_id`: the ID of the topic (`initial_request`).
121
+ - `initial_request`: the query (text) that initiates the conversation.
122
+ - `topic_desc`: a full description of the topic as it appears in the TREC Web Track data.
123
+ - `clarification_need`: a label from 1 to 4, indicating how much it is needed to clarify a topic. If an `initial_request` is self-contained and would not need any clarification, the label would be 1. While if a `initial_request` is absolutely ambiguous, making it impossible for a search engine to guess the user's right intent before clarification, the label would be 4.
124
+ - `facet_id`: the ID of the facet.
125
+ - `facet_desc`: a full description of the facet (information need) as it appears in the TREC Web Track data.
126
+ - `question_id`: the ID of the question..
127
+ - `question`: a clarifying question that the system can pose to the user for the current topic and facet.
128
+ - `answer`: an answer to the clarifying question, assuming that the user is in the context of the current row (i.e., the user's initial query is `initial_request`, their information need is `facet_desc`, and `question` has been posed to the user).
129
+
130
+ ### Data Splits
131
+
132
+ [More Information Needed]
133
+
134
+ ## Dataset Creation
135
+
136
+ ### Curation Rationale
137
+
138
+ [More Information Needed]
139
+
140
+ ### Source Data
141
+
142
+ #### Initial Data Collection and Normalization
143
+
144
+ [More Information Needed]
145
+
146
+ #### Who are the source language producers?
147
+
148
+ [More Information Needed]
149
+
150
+ ### Annotations
151
+
152
+ #### Annotation process
153
+
154
+ [More Information Needed]
155
+
156
+ #### Who are the annotators?
157
+
158
+ [More Information Needed]
159
+
160
+ ### Personal and Sensitive Information
161
+
162
+ [More Information Needed]
163
+
164
+ ## Considerations for Using the Data
165
+
166
+ ### Social Impact of Dataset
167
+
168
+ [More Information Needed]
169
+
170
+ ### Discussion of Biases
171
+
172
+ [More Information Needed]
173
+
174
+ ### Other Known Limitations
175
+
176
+ [More Information Needed]
177
+
178
+ ## Additional Information
179
+
180
+ ### Dataset Curators
181
+
182
+ [More Information Needed]
183
+
184
+ ### Licensing Information
185
+
186
+ [More Information Needed]
187
+
188
+ ### Citation Information
189
+
190
+ @misc{aliannejadi2020convai3,
191
+ title={ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)},
192
+ author={Mohammad Aliannejadi and Julia Kiseleva and Aleksandr Chuklin and Jeff Dalton and Mikhail Burtsev},
193
+ year={2020},
194
+ eprint={2009.11352},
195
+ archivePrefix={arXiv},
196
+ primaryClass={cs.CL}
197
+ }
conv_ai_3.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import absolute_import, division, print_function
2
+
3
+ import csv
4
+
5
+ import datasets
6
+
7
+
8
+ csv.field_size_limit(int(1e6)) # to accommodate large fields
9
+
10
+
11
+ _CITATION = """\
12
+ @misc{aliannejadi2020convai3,
13
+ title={ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)},
14
+ author={Mohammad Aliannejadi and Julia Kiseleva and Aleksandr Chuklin and Jeff Dalton and Mikhail Burtsev},
15
+ year={2020},
16
+ eprint={2009.11352},
17
+ archivePrefix={arXiv},
18
+ primaryClass={cs.CL}
19
+ }
20
+ """
21
+
22
+ _DESCRIPTION = """\
23
+ The Conv AI 3 challenge is organized as part of the Search-oriented Conversational AI (SCAI) EMNLP workshop in 2020. The main aim of the conversational systems is to return an appropriate answer in response to the user requests. However, some user requests might be ambiguous. In Information Retrieval (IR) settings such a situation is handled mainly through the diversification of search result page. It is however much more challenging in dialogue settings. Hence, we aim to study the following situation for dialogue settings:
24
+ - a user is asking an ambiguous question (where ambiguous question is a question to which one can return > 1 possible answers)
25
+ - the system must identify that the question is ambiguous, and, instead of trying to answer it directly, ask a good clarifying question.
26
+ """
27
+
28
+
29
+ class ConvAi_3_Config(datasets.BuilderConfig):
30
+ """BuilderConfig for ConvAi_3."""
31
+
32
+ def __init__(self, **kwargs):
33
+ """BuilderConfig for ConvAi_3.
34
+ Args:
35
+ **kwargs: keyword arguments forwarded to super.
36
+ """
37
+ super(ConvAi_3_Config, self).__init__(**kwargs)
38
+
39
+
40
+ class ConvAi_3(datasets.GeneratorBasedBuilder):
41
+
42
+ _TRAIN_FILE = "https://github.com/aliannejadi/ClariQ/raw/master/data/train.tsv"
43
+ _VAL_FILE = "https://github.com/aliannejadi/ClariQ/raw/master/data/dev.tsv"
44
+
45
+ BUILDER_CONFIGS = [
46
+ ConvAi_3_Config(
47
+ name="conv_ai_3",
48
+ version=datasets.Version("1.0.0"),
49
+ description="Conv AI 3: Full training set with Dev set",
50
+ ),
51
+ ]
52
+
53
+ def _info(self):
54
+ return datasets.DatasetInfo(
55
+ description=_DESCRIPTION,
56
+ features=datasets.Features(
57
+ {
58
+ "topic_id": datasets.Value("int32"),
59
+ "initial_request": datasets.Value("string"),
60
+ "topic_desc": datasets.Value("string"),
61
+ "clarification_need": datasets.Value("int32"),
62
+ "facet_id": datasets.Value("string"),
63
+ "facet_desc": datasets.Value("string"),
64
+ "question_id": datasets.Value("string"),
65
+ "question": datasets.Value("string"),
66
+ "answer": datasets.Value("string"),
67
+ }
68
+ ),
69
+ supervised_keys=None,
70
+ homepage="https://github.com/aliannejadi/ClariQ",
71
+ citation=_CITATION,
72
+ )
73
+
74
+ def _split_generators(self, dl_manager):
75
+ downloaded_train = dl_manager.download(self._TRAIN_FILE)
76
+ downloaded_dev = dl_manager.download(self._VAL_FILE)
77
+
78
+ return [
79
+ datasets.SplitGenerator(
80
+ name=datasets.Split.TRAIN,
81
+ gen_kwargs={"filepath": downloaded_train},
82
+ ),
83
+ datasets.SplitGenerator(
84
+ name=datasets.Split.VALIDATION,
85
+ gen_kwargs={"filepath": downloaded_dev},
86
+ ),
87
+ ]
88
+
89
+ def _generate_examples(self, filepath):
90
+ """Generate examples."""
91
+ with open(filepath, encoding="utf-8") as f:
92
+ csv_reader = csv.reader(f, delimiter="\t")
93
+ next(csv_reader) # skip header
94
+ for id_, row in enumerate(csv_reader):
95
+ if len(row) < 9: # checking because some rows are blank with just id
96
+ continue
97
+ yield id_, {
98
+ "topic_id": row[0],
99
+ "initial_request": row[1],
100
+ "topic_desc": row[2],
101
+ "clarification_need": row[3],
102
+ "facet_id": row[4],
103
+ "facet_desc": row[5],
104
+ "question_id": row[6],
105
+ "question": row[7],
106
+ "answer": row[8],
107
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"conv_ai_3": {"description": "The Conv AI 3 challenge is organized as part of the Search-oriented Conversational AI (SCAI) EMNLP workshop in 2020. The main aim of the conversational systems is to return an appropriate answer in response to the user requests. However, some user requests might be ambiguous. In Information Retrieval (IR) settings such a situation is handled mainly through the diversification of search result page. It is however much more challenging in dialogue settings. Hence, we aim to study the following situation for dialogue settings: \n- a user is asking an ambiguous question (where ambiguous question is a question to which one can return > 1 possible answers)\n- the system must identify that the question is ambiguous, and, instead of trying to answer it directly, ask a good clarifying question.\n", "citation": "@misc{aliannejadi2020convai3,\n title={ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)}, \n author={Mohammad Aliannejadi and Julia Kiseleva and Aleksandr Chuklin and Jeff Dalton and Mikhail Burtsev},\n year={2020},\n eprint={2009.11352},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/aliannejadi/ClariQ", "license": "", "features": {"topic_id": {"dtype": "int32", "id": null, "_type": "Value"}, "initial_request": {"dtype": "string", "id": null, "_type": "Value"}, "topic_desc": {"dtype": "string", "id": null, "_type": "Value"}, "clarification_need": {"dtype": "int32", "id": null, "_type": "Value"}, "facet_id": {"dtype": "string", "id": null, "_type": "Value"}, "facet_desc": {"dtype": "string", "id": null, "_type": "Value"}, "question_id": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "answer": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "conv_ai_3", "config_name": "conv_ai_3", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2567404, "num_examples": 9176, "dataset_name": "conv_ai_3"}, "validation": {"name": "validation", "num_bytes": 639351, "num_examples": 2313, "dataset_name": "conv_ai_3"}}, "download_checksums": {"https://github.com/aliannejadi/ClariQ/raw/master/data/train.tsv": {"num_bytes": 2354040, "checksum": "65d3da13b2d6ea77e7eaa45290894ffc162a5bd000e7640decd1b0a272a6e9d1"}, "https://github.com/aliannejadi/ClariQ/raw/master/data/dev.tsv": {"num_bytes": 585998, "checksum": "68d2a5f87eab73721979b5f45f64099a9b2f080db1d0ce4b979d9daa4249906e"}}, "download_size": 2940038, "post_processing_size": null, "dataset_size": 3206755, "size_in_bytes": 6146793}}
dummy/conv_ai_3/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb2847efbfab3aaebc2616918bba0892b37c2de797c92d80ecd775af598a5cdb
3
+ size 1056