system HF staff commited on
Commit
0df8783
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,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 conv_ai_2
24
+
25
+ ## Table of Contents
26
+ - [Dataset Description](#dataset-description)
27
+ - [Dataset Summary](#dataset-summary)
28
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
29
+ - [Languages](#languages)
30
+ - [Dataset Structure](#dataset-structure)
31
+ - [Data Instances](#data-instances)
32
+ - [Data Fields](#data-instances)
33
+ - [Data Splits](#data-instances)
34
+ - [Dataset Creation](#dataset-creation)
35
+ - [Curation Rationale](#curation-rationale)
36
+ - [Source Data](#source-data)
37
+ - [Annotations](#annotations)
38
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
39
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
40
+ - [Social Impact of Dataset](#social-impact-of-dataset)
41
+ - [Discussion of Biases](#discussion-of-biases)
42
+ - [Other Known Limitations](#other-known-limitations)
43
+ - [Additional Information](#additional-information)
44
+ - [Dataset Curators](#dataset-curators)
45
+ - [Licensing Information](#licensing-information)
46
+ - [Citation Information](#citation-information)
47
+
48
+ ## Dataset Description
49
+
50
+ - **Homepage:** https://github.com/DeepPavlov/convai/tree/master/2018
51
+ - **Repository:** https://github.com/DeepPavlov/convai/tree/master/2018
52
+ - **Paper:** https://arxiv.org/abs/1902.00098
53
+ - **Leaderboard:** [More Information Needed]
54
+ - **Point of Contact:** [More Information Needed]
55
+
56
+ ### Dataset Summary
57
+
58
+ ConvAI is a dataset of human-to-bot conversations labeled for quality. This data can be used to train a metric for evaluating dialogue systems. Moreover, it can be used in the development of chatbots themselves: it contains information on the quality of utterances and entire dialogues, that can guide a dialogue system in search of better answers.
59
+
60
+ ### Supported Tasks and Leaderboards
61
+
62
+ [More Information Needed]
63
+
64
+ ### Languages
65
+
66
+ [More Information Needed]
67
+
68
+ ## Dataset Structure
69
+
70
+ ### Data Instances
71
+
72
+ ```
73
+ {
74
+ "dialog_id": "0x648cc5b7",
75
+ "dialog": [
76
+ {
77
+ "id": 0,
78
+ "sender": "participant2",
79
+ "text": "Hi! How is your day? \ud83d\ude09",
80
+ "sender_class": "Bot"
81
+ },
82
+ {
83
+ "id": 1,
84
+ "sender": "participant1",
85
+ "text": "Hi! Great!",
86
+ "sender_class": "Human"
87
+ },
88
+ {
89
+ "id": 2,
90
+ "sender": "participant2",
91
+ "text": "I am good thanks for asking are you currently in high school?",
92
+ "sender_class": "Bot"
93
+ }
94
+ ],
95
+ "bot_profile": [
96
+ "my current goal is to run a k.",
97
+ "when i grow up i want to be a physical therapist.",
98
+ "i'm currently in high school.",
99
+ "i make straight as in school.",
100
+ "i won homecoming queen this year."
101
+ ],
102
+ "user_profile": [
103
+ "my favorite color is red.",
104
+ "i enjoy listening to classical music.",
105
+ "i'm a christian.",
106
+ "i can drive a tractor."
107
+ ],
108
+ "eval_score": 4,
109
+ "profile_match": 1
110
+ }
111
+ ```
112
+
113
+ ### Data Fields
114
+
115
+ - dialog_id : specifies the unique ID for the dialogs.
116
+ - dialog : Array of dialogs.
117
+ - bot_profile : Bot annotated response that will be used for evaluation.
118
+ - user_profile : user annoted response that will be used for evaluation.
119
+ - eval_score : (`1`,` 2`,` 3`,` 4`,` 5`) how does an user like a conversation. The missing values are replaced with` -1`
120
+ - profile_match : (`0`,` 1`) an user is given by two profile descriptions (4 sentences each), one of them is the one given to the bot it had been talking to, the other one is random; the user needs to choose one of them.The missing values are replaced with` -1`
121
+
122
+ ### Data Splits
123
+
124
+ [More Information Needed]
125
+
126
+ ## Dataset Creation
127
+
128
+ ### Curation Rationale
129
+
130
+ [More Information Needed]
131
+
132
+ ### Source Data
133
+
134
+ #### Initial Data Collection and Normalization
135
+
136
+ [More Information Needed]
137
+
138
+ #### Who are the source language producers?
139
+
140
+ [More Information Needed]
141
+
142
+ ### Annotations
143
+
144
+ #### Annotation process
145
+
146
+ [More Information Needed]
147
+
148
+ #### Who are the annotators?
149
+
150
+ [More Information Needed]
151
+
152
+ ### Personal and Sensitive Information
153
+
154
+ [More Information Needed]
155
+
156
+ ## Considerations for Using the Data
157
+
158
+ ### Social Impact of Dataset
159
+
160
+ [More Information Needed]
161
+
162
+ ### Discussion of Biases
163
+
164
+ [More Information Needed]
165
+
166
+ ### Other Known Limitations
167
+
168
+ [More Information Needed]
169
+
170
+ ## Additional Information
171
+
172
+ ### Dataset Curators
173
+
174
+ [More Information Needed]
175
+
176
+ ### Licensing Information
177
+
178
+ [More Information Needed]
179
+
180
+ ### Citation Information
181
+
182
+ @article{DBLP:journals/corr/abs-1902-00098,
183
+ author = {Emily Dinan and
184
+ Varvara Logacheva and
185
+ Valentin Malykh and
186
+ Alexander H. Miller and
187
+ Kurt Shuster and
188
+ Jack Urbanek and
189
+ Douwe Kiela and
190
+ Arthur Szlam and
191
+ Iulian Serban and
192
+ Ryan Lowe and
193
+ Shrimai Prabhumoye and
194
+ Alan W. Black and
195
+ Alexander I. Rudnicky and
196
+ Jason Williams and
197
+ Joelle Pineau and
198
+ Mikhail S. Burtsev and
199
+ Jason Weston},
200
+ title = {The Second Conversational Intelligence Challenge (ConvAI2)},
201
+ journal = {CoRR},
202
+ volume = {abs/1902.00098},
203
+ year = {2019},
204
+ url = {http://arxiv.org/abs/1902.00098},
205
+ archivePrefix = {arXiv},
206
+ eprint = {1902.00098},
207
+ timestamp = {Wed, 07 Oct 2020 11:09:41 +0200},
208
+ biburl = {https://dblp.org/rec/journals/corr/abs-1902-00098.bib},
209
+ bibsource = {dblp computer science bibliography, https://dblp.org}
210
+ }
conv_ai_2.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import absolute_import, division, print_function
2
+
3
+ import json
4
+
5
+ import datasets
6
+
7
+
8
+ _CITATION = """\
9
+ @misc{dinan2019second,
10
+ title={The Second Conversational Intelligence Challenge (ConvAI2)},
11
+ author={Emily Dinan and Varvara Logacheva and Valentin Malykh and Alexander Miller and Kurt Shuster and Jack Urbanek and Douwe Kiela and Arthur Szlam and Iulian Serban and Ryan Lowe and Shrimai Prabhumoye and Alan W Black and Alexander Rudnicky and Jason Williams and Joelle Pineau and Mikhail Burtsev and Jason Weston},
12
+ year={2019},
13
+ eprint={1902.00098},
14
+ archivePrefix={arXiv},
15
+ primaryClass={cs.AI}
16
+ }
17
+ """
18
+
19
+ _DESCRIPTION = """\
20
+ ConvAI is a dataset of human-to-bot conversations labelled for quality. \
21
+ This data can be used to train a metric for evaluating dialogue systems. \
22
+ Moreover, it can be used in the development of chatbots themselves: it contains the information \
23
+ on the quality of utterances and entire dialogues, that can guide a dialogue system in search of better answers.
24
+ """
25
+
26
+ _URL = "https://github.com/DeepPavlov/convai/raw/master/2018/data/summer_wild_evaluation_dialogs.json"
27
+
28
+
29
+ class ConvAi_2(datasets.GeneratorBasedBuilder):
30
+ """ConvAI: A Dataset of Topic-Oriented Human-to-Chatbot Dialogues"""
31
+
32
+ VERSION = datasets.Version("1.0.0")
33
+ BUILDER_CONFIGS = [
34
+ datasets.BuilderConfig(
35
+ name="conv_ai_2",
36
+ version=datasets.Version("1.0.0"),
37
+ description="Full training set",
38
+ ),
39
+ ]
40
+
41
+ def _info(self):
42
+ return datasets.DatasetInfo(
43
+ description=_DESCRIPTION,
44
+ features=datasets.Features(
45
+ {
46
+ "id": datasets.Value("string"),
47
+ "dialog_id": datasets.Value("string"),
48
+ "dialog": [
49
+ {
50
+ "id": datasets.Value("int32"),
51
+ "sender": datasets.Value("string"),
52
+ "text": datasets.Value("string"),
53
+ "sender_class": datasets.Value("string"),
54
+ }
55
+ ],
56
+ "bot_profile": datasets.Sequence([datasets.Value("string")]),
57
+ "user_profile": datasets.Sequence([datasets.Value("string")]),
58
+ "eval_score": datasets.Value("int32"),
59
+ "profile_match": datasets.Value("int32"),
60
+ }
61
+ ),
62
+ supervised_keys=None,
63
+ homepage="https://github.com/DeepPavlov/convai/tree/master/2018",
64
+ citation=_CITATION,
65
+ )
66
+
67
+ def _split_generators(self, dl_manager):
68
+ downloaded_file = dl_manager.download(_URL)
69
+
70
+ return [
71
+ datasets.SplitGenerator(
72
+ name=datasets.Split.TRAIN,
73
+ gen_kwargs={"filepath": downloaded_file},
74
+ ),
75
+ ]
76
+
77
+ def _generate_examples(self, filepath):
78
+ with open(filepath, encoding="utf-8") as f:
79
+ examples = json.load(f)
80
+ for example in examples:
81
+ example["id"] = example["dialog_id"]
82
+ if example["eval_score"] is None:
83
+ example["eval_score"] = -1 # missing eval_score is replaced with -1
84
+ if example["profile_match"] == "":
85
+ example["profile_match"] = -1 # missing profile_match is replaced with -1
86
+ yield example["id"], example
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"conv_ai_2": {"description": "ConvAI is a dataset of human-to-bot conversations labelled for quality. This data can be used to train a metric for evaluating dialogue systems. Moreover, it can be used in the development of chatbots themselves: it contains the information on the quality of utterances and entire dialogues, that can guide a dialogue system in search of better answers.\n", "citation": "", "homepage": "https://github.com/DeepPavlov/convai/tree/master/2018", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "dialog_id": {"dtype": "string", "id": null, "_type": "Value"}, "dialog": [{"id": {"dtype": "int32", "id": null, "_type": "Value"}, "sender": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "sender_class": {"dtype": "string", "id": null, "_type": "Value"}}], "bot_profile": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}, "user_profile": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}, "eval_score": {"dtype": "int32", "id": null, "_type": "Value"}, "profile_match": {"dtype": "int32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "conv_ai_2", "config_name": "conv_ai_2", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8403805, "num_examples": 3495, "dataset_name": "conv_ai_2"}}, "download_checksums": {"https://github.com/DeepPavlov/convai/raw/master/2018/data/summer_wild_evaluation_dialogs.json": {"num_bytes": 6636788, "checksum": "c96f53c63d36360236aaa0590f4f9f2ab62eb544126c17aeb9f839b3781135d1"}}, "download_size": 6636788, "post_processing_size": null, "dataset_size": 8403805, "size_in_bytes": 15040593}}
dummy/conv_ai_2/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f6d382b7427c505dc0640484bcc90df5f3a70bbfe5af757ed119d4ed295204b
3
+ size 2649