parquet-converter commited on
Commit
8542332
1 Parent(s): 6a5c3fb

Update parquet files

Browse files
.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,429 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - crowdsourced
6
- language:
7
- - en
8
- - es
9
- - fr
10
- - ht
11
- - ur
12
- license:
13
- - unknown
14
- multilinguality:
15
- - multilingual
16
- size_categories:
17
- - 10K<n<100K
18
- source_datasets:
19
- - original
20
- task_categories:
21
- - text2text-generation
22
- - text-classification
23
- task_ids:
24
- - intent-classification
25
- - sentiment-classification
26
- - text-simplification
27
- paperswithcode_id: null
28
- pretty_name: Disaster Response Messages
29
- dataset_info:
30
- features:
31
- - name: split
32
- dtype: string
33
- - name: message
34
- dtype: string
35
- - name: original
36
- dtype: string
37
- - name: genre
38
- dtype: string
39
- - name: related
40
- dtype:
41
- class_label:
42
- names:
43
- 0: 'false'
44
- 1: 'true'
45
- 2: maybe
46
- - name: PII
47
- dtype: int8
48
- - name: request
49
- dtype:
50
- class_label:
51
- names:
52
- 0: 'false'
53
- 1: 'true'
54
- - name: offer
55
- dtype: int8
56
- - name: aid_related
57
- dtype:
58
- class_label:
59
- names:
60
- 0: 'false'
61
- 1: 'true'
62
- - name: medical_help
63
- dtype:
64
- class_label:
65
- names:
66
- 0: 'false'
67
- 1: 'true'
68
- - name: medical_products
69
- dtype:
70
- class_label:
71
- names:
72
- 0: 'false'
73
- 1: 'true'
74
- - name: search_and_rescue
75
- dtype:
76
- class_label:
77
- names:
78
- 0: 'false'
79
- 1: 'true'
80
- - name: security
81
- dtype:
82
- class_label:
83
- names:
84
- 0: 'false'
85
- 1: 'true'
86
- - name: military
87
- dtype:
88
- class_label:
89
- names:
90
- 0: 'false'
91
- 1: 'true'
92
- - name: child_alone
93
- dtype: int8
94
- - name: water
95
- dtype:
96
- class_label:
97
- names:
98
- 0: 'false'
99
- 1: 'true'
100
- - name: food
101
- dtype:
102
- class_label:
103
- names:
104
- 0: 'false'
105
- 1: 'true'
106
- - name: shelter
107
- dtype:
108
- class_label:
109
- names:
110
- 0: 'false'
111
- 1: 'true'
112
- - name: clothing
113
- dtype:
114
- class_label:
115
- names:
116
- 0: 'false'
117
- 1: 'true'
118
- - name: money
119
- dtype:
120
- class_label:
121
- names:
122
- 0: 'false'
123
- 1: 'true'
124
- - name: missing_people
125
- dtype:
126
- class_label:
127
- names:
128
- 0: 'false'
129
- 1: 'true'
130
- - name: refugees
131
- dtype:
132
- class_label:
133
- names:
134
- 0: 'false'
135
- 1: 'true'
136
- - name: death
137
- dtype:
138
- class_label:
139
- names:
140
- 0: 'false'
141
- 1: 'true'
142
- - name: other_aid
143
- dtype:
144
- class_label:
145
- names:
146
- 0: 'false'
147
- 1: 'true'
148
- - name: infrastructure_related
149
- dtype:
150
- class_label:
151
- names:
152
- 0: 'false'
153
- 1: 'true'
154
- - name: transport
155
- dtype:
156
- class_label:
157
- names:
158
- 0: 'false'
159
- 1: 'true'
160
- - name: buildings
161
- dtype:
162
- class_label:
163
- names:
164
- 0: 'false'
165
- 1: 'true'
166
- - name: electricity
167
- dtype:
168
- class_label:
169
- names:
170
- 0: 'false'
171
- 1: 'true'
172
- - name: tools
173
- dtype:
174
- class_label:
175
- names:
176
- 0: 'false'
177
- 1: 'true'
178
- - name: hospitals
179
- dtype:
180
- class_label:
181
- names:
182
- 0: 'false'
183
- 1: 'true'
184
- - name: shops
185
- dtype:
186
- class_label:
187
- names:
188
- 0: 'false'
189
- 1: 'true'
190
- - name: aid_centers
191
- dtype:
192
- class_label:
193
- names:
194
- 0: 'false'
195
- 1: 'true'
196
- - name: other_infrastructure
197
- dtype:
198
- class_label:
199
- names:
200
- 0: 'false'
201
- 1: 'true'
202
- - name: weather_related
203
- dtype:
204
- class_label:
205
- names:
206
- 0: 'false'
207
- 1: 'true'
208
- - name: floods
209
- dtype:
210
- class_label:
211
- names:
212
- 0: 'false'
213
- 1: 'true'
214
- - name: storm
215
- dtype:
216
- class_label:
217
- names:
218
- 0: 'false'
219
- 1: 'true'
220
- - name: fire
221
- dtype:
222
- class_label:
223
- names:
224
- 0: 'false'
225
- 1: 'true'
226
- - name: earthquake
227
- dtype:
228
- class_label:
229
- names:
230
- 0: 'false'
231
- 1: 'true'
232
- - name: cold
233
- dtype:
234
- class_label:
235
- names:
236
- 0: 'false'
237
- 1: 'true'
238
- - name: other_weather
239
- dtype:
240
- class_label:
241
- names:
242
- 0: 'false'
243
- 1: 'true'
244
- - name: direct_report
245
- dtype:
246
- class_label:
247
- names:
248
- 0: 'false'
249
- 1: 'true'
250
- splits:
251
- - name: train
252
- num_bytes: 10060799
253
- num_examples: 21046
254
- - name: test
255
- num_bytes: 1253810
256
- num_examples: 2629
257
- - name: validation
258
- num_bytes: 1266874
259
- num_examples: 2573
260
- download_size: 7201807
261
- dataset_size: 12581483
262
- ---
263
-
264
- # Dataset Card for Disaster Response Messages
265
-
266
- ## Table of Contents
267
- - [Dataset Description](#dataset-description)
268
- - [Dataset Summary](#dataset-summary)
269
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
270
- - [Languages](#languages)
271
- - [Dataset Structure](#dataset-structure)
272
- - [Data Instances](#data-instances)
273
- - [Data Fields](#data-fields)
274
- - [Data Splits](#data-splits)
275
- - [Dataset Creation](#dataset-creation)
276
- - [Curation Rationale](#curation-rationale)
277
- - [Source Data](#source-data)
278
- - [Annotations](#annotations)
279
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
280
- - [Considerations for Using the Data](#considerations-for-using-the-data)
281
- - [Social Impact of Dataset](#social-impact-of-dataset)
282
- - [Discussion of Biases](#discussion-of-biases)
283
- - [Other Known Limitations](#other-known-limitations)
284
- - [Additional Information](#additional-information)
285
- - [Dataset Curators](#dataset-curators)
286
- - [Licensing Information](#licensing-information)
287
- - [Citation Information](#citation-information)
288
- - [Contributions](#contributions)
289
-
290
- ## Dataset Description
291
-
292
- - **Homepage:** [HomePage](https://appen.com/datasets/combined-disaster-response-data/)
293
- - **Repository:** [Repo to Download the Dataset](https://datasets.appen.com/appen_datasets/disaster_response_data/disaster_response_messages_training.csv)
294
- - **Paper:
295
- - **Leaderboard:
296
- - **Point of Contact:** [Darshan Gandhi](darshangandhi1151@gmail.com)
297
-
298
- ### Dataset Summary
299
-
300
- This dataset contains 30,000 messages drawn from events including an earthquake in Haiti in 2010, an earthquake in Chile in 2010, floods in Pakistan in 2010, super-storm Sandy in the U.S.A. in 2012, and news articles spanning a large number of years and 100s of different disasters. The data has been encoded with 36 different categories related to disaster response and has been stripped of messages with sensitive information in their entirety. Upon release, this is the featured dataset of a new Udacity course on Data Science and the AI4ALL summer school and is especially utile for text analytics and natural language processing (NLP) tasks and models.The input data in this job contains thousands of untranslated disaster-related messages and their English translations. In the “Data” tab above, you’ll find the annotated data, with 40 class labels for intent and content.
301
-
302
- ### Supported Tasks and Leaderboards
303
-
304
- The input data in this job contains thousands of untranslated disaster-related messages and their English translations. In the dataset, you’ll find the annotated data, with 40 class labels for intent and content. This dataset contains the original message in its original language, the English translation, and dozens of classes for message content. These classes are noted in column titles with a simple binary 1= yes, 0=no.
305
-
306
- ### Languages
307
-
308
- The dataset is a multilingual dataset which has the messages in the original language and also it's translated English form.
309
-
310
- ## Dataset Structure
311
-
312
- ### Data Instances
313
-
314
- The dataset consists of a message in English and also it's original language form. Adding on, there are 40 labels which help to understand more about the exact essence of the message.
315
-
316
- Example of a Disaster Response : { 'split': 'train', 'message': 'Weather update - a cold front from Cuba that could pass over Haiti', 'original': 'Un front froid se retrouve sur Cuba ce matin. Il pourrait traverser Haiti demain. Des averses de pluie isolee sont encore prevues sur notre region ce soi', 'genre': 'direct', 'related': 1, 'PII': 0, 'request': 0, 'offer': 0, 'aid_related': 0, 'medical_help': 0, 'medical_products': 0, 'search_and_rescue': 0, 'security': 0, 'military': 0, 'child_alone': 0, 'water': 0, 'food': 0, 'shelter': 0, 'clothing': 0, 'money': 0, 'missing_people': 0, 'refugees': 0, 'death': 0, 'other_aid': 0, 'infrastructure_related': 0, 'transport': 0, 'buildings': 0, 'electricity': 0, 'tools': 0, 'hospitals': 0, 'shops': 0, 'aid_centers': 0, 'other_infrastructure': 0, 'weather_related': 0, 'floods': 0, 'storm': 0, 'fire': 0, 'earthquake': 0, 'cold': 0, 'other_weather': 0, 'direct_report': 0}
317
-
318
- ### Data Fields
319
-
320
- *split: Train, Test split</br>
321
- *message: English text of actual messages related to disaster </br>
322
- *original: Text of column 3 in native language as originally written</br>
323
- *genre: Type of message, including direct messages, social posting, and news stories or bulletins</br>
324
- *related: Is the message disaster related? 1= yes, 0=no, 2=maybe</br>
325
- *PII: Does the message contain PII? 1= yes, 0=no </br>
326
- *request: Does the message contain a request? 1= yes, 0=no </br>
327
- *offer: Does the message contain an offer? 1= yes, 0=no </br>
328
- *aid_related: Is the message aid related? 1= yes, 0=no </br>
329
- *medical_help: Does the message concern medical help? 1= yes, 0=no </br>
330
- *medical_products: Does the message concern medical products? 1= yes, 0=no </br>
331
- *search_and_rescue: Does the message concern search and rescue? 1= yes, 0=no </br>
332
- *security: Does the message concern security? 1= yes, 0=no </br>
333
- *military: Does the message concern military? 1= yes, 0=no </br>
334
- *child_alone: Does the message mention a child alone? 1= yes, 0=no</br>
335
- *water: Does the message concern water? 1= yes, 0=no</br>
336
- *food: Does the message concern food? 1= yes, 0=no </br>
337
- *shelter: Does the message concern shelter? 1= yes, 0=no </br>
338
- *clothing: Does the message concern clothing? 1= yes, 0=no </br>
339
- *money: Does the message concern money? 1= yes, 0=no </br>
340
- *missing_people: Does the message indicate missing people? 1= yes, 0=no</br>
341
- *refugees: Does the message concern refugess? 1= yes, 0=no</br>
342
- *death: Does the message imply death? 1= yes, 0=no </br>
343
- *other_aid: Is there any other aid needed? 1=yes, 0=no </br>
344
- *infrastructure_related: Does the message concern infrastructure? 1= yes, 0=no </br>
345
- *transport: Does the message concern transport? 1= yes, 0=no </br>
346
- *buildings: Does the message concern buildings? 1= yes, 0=no </br>
347
- *electricity: Does the message concern electricity? 1= yes, 0=no </br>
348
- *tools: Does the message concern tools? 1= yes, 0=no </br>
349
- *hospitals: Does the message concern clothing? 1= yes, 0=no </br>
350
- *shops: Does the message concern clothing? 1= yes, 0=no </br>
351
- *aid_centers:Does the message concern clothing? 1= yes, 0=no </br>
352
- *other_infrastructure:Does the message concern clothing? 1= yes, 0=no </br>
353
- *weather_related: Does the message concern weather? 1= yes, 0=no</br>
354
- *floods: Does the message indicate there was a flood? 1= yes, 0=no</br>
355
- *storm: Does the message indicate there was a storm? 1= yes, 0=no </br>
356
- *fire: Does the message indicate there was a fire? 1= yes, 0=no</br>
357
- *earthquake: Does the message indicate there was an earthquake? 1= yes, 0=no</br>
358
- *cold: Does the message indicate there was a cold? 1= yes, 0=no</br>
359
- *other_weather: Does the message indicate there was other weather issues? 1= yes, 0=no</br>
360
- *direct_report: Does the show a direct report? 1= yes, 0=no
361
-
362
- ### Data Splits
363
-
364
- |train|test |validation|
365
- |:----:|:-----------:|:----:|
366
- |21046|2629|2573|
367
-
368
- ## Dataset Creation
369
-
370
- ### Curation Rationale
371
-
372
- The dataset was built to understand about the sentiments of the citizens and also more about want was the emergency about and what kind of help they were seeking
373
-
374
- ### Source Data
375
-
376
- #### Initial Data Collection and Normalization
377
-
378
- [More Information Needed]
379
-
380
- #### Who are the source language producers?
381
-
382
- [More Information Needed]
383
-
384
- ### Annotations
385
-
386
- #### Annotation process
387
-
388
- [More Information Needed]
389
-
390
- #### Who are the annotators?
391
-
392
- [More Information Needed]
393
-
394
- ### Personal and Sensitive Information
395
-
396
- [More Information Needed]
397
-
398
- ## Considerations for Using the Data
399
-
400
- ### Social Impact of Dataset
401
-
402
- The dataset has a great usecase of understand more about the sentiments of the citizens around the globe during a disaster and how their responses are. Also, it helps the government to understand their citizens better and would eventually help to draft better policies accordingly.
403
-
404
- ### Discussion of Biases
405
-
406
- The messages since have been translated in English may not be able to judically imply the exact significance of the individual when they would have posted the message
407
-
408
- ### Other Known Limitations
409
-
410
- [More Information Needed]
411
-
412
- ## Additional Information
413
-
414
- ### Dataset Curators
415
-
416
- The dataset was initially created by [Appen](https://appen.com/)
417
-
418
- ### Licensing Information
419
-
420
- [More Information Needed]
421
-
422
- ### Citation Information
423
-
424
- [Multilingual Disaster Response Messages](https://appen.com/datasets/combined-disaster-response-data/)
425
-
426
-
427
- ### Contributions
428
-
429
- Thanks to [@darshan-gandhi](https://github.com/darshan-gandhi) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "This dataset contains 30,000 messages drawn from events including an earthquake in Haiti in 2010, an earthquake in Chile in 2010, floods in Pakistan in 2010, super-storm Sandy in the U.S.A. in 2012, and news articles spanning a large number of years and 100s of different disasters.\nThe data has been encoded with 36 different categories related to disaster response and has been stripped of messages with sensitive information in their entirety.\nUpon release, this is the featured dataset of a new Udacity course on Data Science and the AI4ALL summer school and is especially utile for text analytics and natural language processing (NLP) tasks and models.\nThe input data in this job contains thousands of untranslated disaster-related messages and their English translations.\n", "citation": "@inproceedings{title={Multilingual Disaster Response Messages}\n}\n", "homepage": "https://appen.com/datasets/combined-disaster-response-data/", "license": "", "features": {"split": {"dtype": "string", "id": null, "_type": "Value"}, "message": {"dtype": "string", "id": null, "_type": "Value"}, "original": {"dtype": "string", "id": null, "_type": "Value"}, "genre": {"dtype": "string", "id": null, "_type": "Value"}, "related": {"num_classes": 3, "names": ["false", "true", "maybe"], "names_file": null, "id": null, "_type": "ClassLabel"}, "PII": {"dtype": "int8", "id": null, "_type": "Value"}, "request": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "offer": {"dtype": "int8", "id": null, "_type": "Value"}, "aid_related": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "medical_help": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "medical_products": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "search_and_rescue": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "security": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "military": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "child_alone": {"dtype": "int8", "id": null, "_type": "Value"}, "water": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "food": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "shelter": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "clothing": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "money": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "missing_people": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "refugees": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "death": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "other_aid": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "infrastructure_related": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "transport": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "buildings": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "electricity": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "tools": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "hospitals": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "shops": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "aid_centers": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "other_infrastructure": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "weather_related": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "floods": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "storm": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "fire": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "earthquake": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "cold": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "other_weather": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}, "direct_report": {"num_classes": 2, "names": ["false", "true"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "disaster_response_messages", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10060799, "num_examples": 21046, "dataset_name": "disaster_response_messages"}, "test": {"name": "test", "num_bytes": 1253810, "num_examples": 2629, "dataset_name": "disaster_response_messages"}, "validation": {"name": "validation", "num_bytes": 1266874, "num_examples": 2573, "dataset_name": "disaster_response_messages"}}, "download_checksums": {"https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_training.csv": {"num_bytes": 5746561, "checksum": "7ca5e54492d0002cf648fa7ae62096ff3ed3318d0f4da32c8d579237b824634c"}, "https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_test.csv": {"num_bytes": 715427, "checksum": "f8fe5bf1c8bf3773487d19b6d702a1635cb7b60b1827923093fe2005f0274ef8"}, "https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_validation.csv": {"num_bytes": 739819, "checksum": "6550f2378f233c089a84d42bfa4d5557b25dc327632c1a7b6c622f0a68115318"}}, "download_size": 7201807, "post_processing_size": null, "dataset_size": 12581483, "size_in_bytes": 19783290}}
 
 
default/disaster_response_messages-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8408caeea86c320be57752639106e4b8a6c20320e3aeb935e2af7ac3f42e620
3
+ size 379322
default/disaster_response_messages-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f06944c724be62dc3544de8927e512b43d8e80daa2fd90b6b51b615254e423
3
+ size 2868842
default/disaster_response_messages-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9f615edaaad4fbfd0135f0d736b5f95ad0353799e5d23ce35868ca113f96601
3
+ size 387781
disaster_response_messages.py DELETED
@@ -1,204 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
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
-
16
- # Lint as: python3
17
- """Multilingual Disaster Response Messages dataset."""
18
-
19
-
20
- import csv
21
-
22
- import datasets
23
-
24
-
25
- _DESCRIPTION = """\
26
- This dataset contains 30,000 messages drawn from events including an earthquake in Haiti in 2010, an earthquake in Chile in 2010, floods in Pakistan in 2010, super-storm Sandy in the U.S.A. in 2012, and news articles spanning a large number of years and 100s of different disasters.
27
- The data has been encoded with 36 different categories related to disaster response and has been stripped of messages with sensitive information in their entirety.
28
- Upon release, this is the featured dataset of a new Udacity course on Data Science and the AI4ALL summer school and is especially utile for text analytics and natural language processing (NLP) tasks and models.
29
- The input data in this job contains thousands of untranslated disaster-related messages and their English translations.
30
- """
31
-
32
- _CITATION = """\
33
- @inproceedings{title={Multilingual Disaster Response Messages}
34
- }
35
- """
36
-
37
- _TRAIN_DOWNLOAD_URL = "https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_training.csv"
38
-
39
- _TEST_DOWNLOAD_URL = "https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_test.csv"
40
-
41
- _VALID_DOWNLOAD_URL = "https://s3.amazonaws.com/datasets.huggingface.co/disaster_response_messages_validation.csv"
42
-
43
-
44
- class DisasterResponseMessages(datasets.GeneratorBasedBuilder):
45
- """Multilingual Disaster Response Messages dataset."""
46
-
47
- def _info(self):
48
- return datasets.DatasetInfo(
49
- description=_DESCRIPTION,
50
- features=datasets.Features(
51
- {
52
- "split": datasets.Value("string"),
53
- "message": datasets.Value("string"),
54
- "original": datasets.Value("string"),
55
- "genre": datasets.Value("string"),
56
- "related": datasets.ClassLabel(names=["false", "true", "maybe"]),
57
- "PII": datasets.Value("int8"),
58
- "request": datasets.ClassLabel(names=["false", "true"]),
59
- "offer": datasets.Value("int8"),
60
- "aid_related": datasets.ClassLabel(names=["false", "true"]),
61
- "medical_help": datasets.ClassLabel(names=["false", "true"]),
62
- "medical_products": datasets.ClassLabel(names=["false", "true"]),
63
- "search_and_rescue": datasets.ClassLabel(names=["false", "true"]),
64
- "security": datasets.ClassLabel(names=["false", "true"]),
65
- "military": datasets.ClassLabel(names=["false", "true"]),
66
- "child_alone": datasets.Value("int8"),
67
- "water": datasets.ClassLabel(names=["false", "true"]),
68
- "food": datasets.ClassLabel(names=["false", "true"]),
69
- "shelter": datasets.ClassLabel(names=["false", "true"]),
70
- "clothing": datasets.ClassLabel(names=["false", "true"]),
71
- "money": datasets.ClassLabel(names=["false", "true"]),
72
- "missing_people": datasets.ClassLabel(names=["false", "true"]),
73
- "refugees": datasets.ClassLabel(names=["false", "true"]),
74
- "death": datasets.ClassLabel(names=["false", "true"]),
75
- "other_aid": datasets.ClassLabel(names=["false", "true"]),
76
- "infrastructure_related": datasets.ClassLabel(names=["false", "true"]),
77
- "transport": datasets.ClassLabel(names=["false", "true"]),
78
- "buildings": datasets.ClassLabel(names=["false", "true"]),
79
- "electricity": datasets.ClassLabel(names=["false", "true"]),
80
- "tools": datasets.ClassLabel(names=["false", "true"]),
81
- "hospitals": datasets.ClassLabel(names=["false", "true"]),
82
- "shops": datasets.ClassLabel(names=["false", "true"]),
83
- "aid_centers": datasets.ClassLabel(names=["false", "true"]),
84
- "other_infrastructure": datasets.ClassLabel(names=["false", "true"]),
85
- "weather_related": datasets.ClassLabel(names=["false", "true"]),
86
- "floods": datasets.ClassLabel(names=["false", "true"]),
87
- "storm": datasets.ClassLabel(names=["false", "true"]),
88
- "fire": datasets.ClassLabel(names=["false", "true"]),
89
- "earthquake": datasets.ClassLabel(names=["false", "true"]),
90
- "cold": datasets.ClassLabel(names=["false", "true"]),
91
- "other_weather": datasets.ClassLabel(names=["false", "true"]),
92
- "direct_report": datasets.ClassLabel(names=["false", "true"]),
93
- }
94
- ),
95
- homepage="https://appen.com/datasets/combined-disaster-response-data/",
96
- citation=_CITATION,
97
- )
98
-
99
- def _split_generators(self, dl_manager):
100
- train_path, test_path, valid_path = dl_manager.download_and_extract(
101
- [_TRAIN_DOWNLOAD_URL, _TEST_DOWNLOAD_URL, _VALID_DOWNLOAD_URL]
102
- )
103
- return [
104
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
105
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
106
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": valid_path}),
107
- ]
108
-
109
- def _generate_examples(self, filepath):
110
- """Generate Distaster Response Messages examples."""
111
- with open(filepath, encoding="utf-8") as csv_file:
112
- csv_reader = csv.reader(
113
- csv_file, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
114
- )
115
- next(csv_reader, None)
116
- for id_, row in enumerate(csv_reader):
117
- row = row[1:]
118
- (
119
- split,
120
- message,
121
- original,
122
- genre,
123
- related,
124
- PII,
125
- request,
126
- offer,
127
- aid_related,
128
- medical_help,
129
- medical_products,
130
- search_and_rescue,
131
- security,
132
- military,
133
- child_alone,
134
- water,
135
- food,
136
- shelter,
137
- clothing,
138
- money,
139
- missing_people,
140
- refugees,
141
- death,
142
- other_aid,
143
- infrastructure_related,
144
- transport,
145
- buildings,
146
- electricity,
147
- tools,
148
- hospitals,
149
- shops,
150
- aid_centers,
151
- other_infrastructure,
152
- weather_related,
153
- floods,
154
- storm,
155
- fire,
156
- earthquake,
157
- cold,
158
- other_weather,
159
- direct_report,
160
- ) = row
161
-
162
- yield id_, {
163
- "split": (split),
164
- "message": (message),
165
- "original": (original),
166
- "genre": (genre),
167
- "related": int(related),
168
- "PII": int(PII),
169
- "request": int(request),
170
- "offer": int(offer),
171
- "aid_related": int(aid_related),
172
- "medical_help": int(medical_help),
173
- "medical_products": int(medical_products),
174
- "search_and_rescue": int(search_and_rescue),
175
- "security": int(security),
176
- "military": int(military),
177
- "child_alone": int(child_alone),
178
- "water": int(water),
179
- "food": int(food),
180
- "shelter": int(shelter),
181
- "clothing": int(clothing),
182
- "money": int(money),
183
- "missing_people": int(missing_people),
184
- "refugees": int(refugees),
185
- "death": int(death),
186
- "other_aid": int(other_aid),
187
- "infrastructure_related": int(infrastructure_related),
188
- "transport": int(transport),
189
- "buildings": int(buildings),
190
- "electricity": int(electricity),
191
- "tools": int(tools),
192
- "hospitals": int(hospitals),
193
- "shops": int(shops),
194
- "aid_centers": int(aid_centers),
195
- "other_infrastructure": int(other_infrastructure),
196
- "weather_related": int(weather_related),
197
- "floods": int(floods),
198
- "storm": int(storm),
199
- "fire": int(fire),
200
- "earthquake": int(earthquake),
201
- "cold": int(cold),
202
- "other_weather": int(other_weather),
203
- "direct_report": int(direct_report),
204
- }