parquet-converter commited on
Commit
ab5f7df
1 Parent(s): e08a8d7

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,48 +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
28
- *.jsonl filter=lfs diff=lfs merge=lfs -text
29
- en/agg.jsonl filter=lfs diff=lfs merge=lfs -text
30
- en/docs.jsonl filter=lfs diff=lfs merge=lfs -text
31
- en/final.jsonl filter=lfs diff=lfs merge=lfs -text
32
- en/raw.jsonl filter=lfs diff=lfs merge=lfs -text
33
- ru/docs.jsonl filter=lfs diff=lfs merge=lfs -text
34
- ru/final.jsonl filter=lfs diff=lfs merge=lfs -text
35
- ru/raw.jsonl filter=lfs diff=lfs merge=lfs -text
36
- ru/agg.jsonl filter=lfs diff=lfs merge=lfs -text
37
- ru/simple/val.jsonl filter=lfs diff=lfs merge=lfs -text
38
- ru/simple/test.jsonl filter=lfs diff=lfs merge=lfs -text
39
- ru/simple/train.jsonl filter=lfs diff=lfs merge=lfs -text
40
- ru/full/test.jsonl filter=lfs diff=lfs merge=lfs -text
41
- ru/full/train.jsonl filter=lfs diff=lfs merge=lfs -text
42
- ru/full/val.jsonl filter=lfs diff=lfs merge=lfs -text
43
- en/full/train.jsonl filter=lfs diff=lfs merge=lfs -text
44
- en/full/val.jsonl filter=lfs diff=lfs merge=lfs -text
45
- en/full/test.jsonl filter=lfs diff=lfs merge=lfs -text
46
- en/simple/test.jsonl filter=lfs diff=lfs merge=lfs -text
47
- en/simple/train.jsonl filter=lfs diff=lfs merge=lfs -text
48
- en/simple/val.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
LICENSE.html DELETED
@@ -1,18 +0,0 @@
1
- <p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
2
- <a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/">
3
- <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" />
4
- </a>
5
- <br />
6
- To the extent possible under law,
7
- <a rel="dct:publisher" href="https://github.com/IlyaGusev">
8
- <span property="dct:title">Ilya Gusev</span>
9
- </a>
10
- has waived all copyright and related or neighboring rights to
11
- <span property="dct:title">HeadlineCause annotations</span>.
12
- The news headlines are not licensed under a Creative Commons licence. All content not licensed under a Creative Commons licence is all rights reserved.
13
- This work is published from:
14
- <span property="vcard:Country" datatype="dct:ISO3166"
15
- content="RU" about="https://github.com/IlyaGusev/HeadlineCause">
16
- Russian Federation
17
- </span>.
18
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
META.html DELETED
@@ -1,28 +0,0 @@
1
- <html>
2
- <head>
3
- <title>HeadlineCause Dataset</title>
4
- <script type="application/ld+json">
5
- {
6
- "@context":"https://schema.org/",
7
- "@type":"Dataset",
8
- "name":"HeadlineCause Dataset",
9
- "description":"A dataset of news headline pairs in English and Russian with causality labels mined through crowdsourcing.",
10
- "url":"https://github.com/IlyaGusev/HeadlineCause/",
11
- "license" : "https://creativecommons.org/publicdomain/zero/1.0/",
12
- "isAccessibleForFree" : true,
13
- "creator":{
14
- "@type":"Person",
15
- "url": "https://github.com/IlyaGusev",
16
- "name":"Ilya Gusev",
17
- "contactPoint":{
18
- "@type":"ContactPoint",
19
- "contactType": "Support",
20
- "email":"ilya.gusev@phystech.edu"
21
- }
22
- }
23
- }
24
- </script>
25
- </head>
26
- <body>
27
- </body>
28
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,191 +0,0 @@
1
- ---
2
- YAML tags:
3
- annotations_creators:
4
- - crowdsourced
5
- language_creators:
6
- - found
7
- language:
8
- - ru
9
- - en
10
- license:
11
- - cc0-1.0
12
- multilinguality:
13
- - multilingual
14
- pretty_name: HeadlineCause
15
- size_categories:
16
- - 10K<n<100K
17
- source_datasets:
18
- - original
19
- task_categories:
20
- - text-classification
21
- task_ids:
22
- - multi-class-classification
23
- - causal-reasoning
24
- ---
25
-
26
- # Dataset Card for HeadlineCause
27
-
28
- ## Table of Contents
29
- - [Table of Contents](#table-of-contents)
30
- - [Dataset Description](#dataset-description)
31
- - [Dataset Summary](#dataset-summary)
32
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
33
- - [Languages](#languages)
34
- - [Dataset Structure](#dataset-structure)
35
- - [Data Instances](#data-instances)
36
- - [Data Fields](#data-fields)
37
- - [Data Splits](#data-splits)
38
- - [Dataset Creation](#dataset-creation)
39
- - [Curation Rationale](#curation-rationale)
40
- - [Source Data](#source-data)
41
- - [Annotations](#annotations)
42
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
43
- - [Considerations for Using the Data](#considerations-for-using-the-data)
44
- - [Social Impact of Dataset](#social-impact-of-dataset)
45
- - [Discussion of Biases](#discussion-of-biases)
46
- - [Other Known Limitations](#other-known-limitations)
47
- - [Additional Information](#additional-information)
48
- - [Dataset Curators](#dataset-curators)
49
- - [Licensing Information](#licensing-information)
50
- - [Citation Information](#citation-information)
51
- - [Contributions](#contributions)
52
-
53
- ## Dataset Description
54
-
55
- - **Homepage:** https://github.com/IlyaGusev/HeadlineCause
56
- - **Paper:** [HeadlineCause: A Dataset of News Headlines for Detecting Causalities](https://arxiv.org/abs/2108.12626)
57
- - **Point of Contact:** [Ilya Gusev](ilya.gusev@phystech.edu)
58
-
59
- ### Dataset Summary
60
-
61
- A dataset for detecting implicit causal relations between pairs of news headlines. The dataset includes over 5000 headline pairs from English news and over 9000 headline pairs from Russian news labeled through crowdsourcing. The pairs vary from totally unrelated or belonging to the same general topic to the ones including causation and refutation relations.
62
-
63
- ### Usage
64
- Loading Russian Simple task:
65
- ```python
66
- from datasets import load_dataset
67
- dataset = load_dataset("IlyaGusev/headline_cause", "ru_simple")
68
- ```
69
-
70
- ### Supported Tasks and Leaderboards
71
-
72
- [More Information Needed]
73
-
74
- ### Languages
75
-
76
- This dataset consists of two parts, Russian and English.
77
-
78
- ## Dataset Structure
79
-
80
- ### Data Instances
81
- There is an URL, a title, and a timestamp for each of the two headlines in every data instance. A label is presented in three fields. 'Result' field is a textual label, 'label' field is a numeric label, and the 'agreement' field shows the majority vote agreement between annotators. Additional information includes instance ID and the presence of the link between two articles.
82
-
83
- ```
84
- {
85
- 'left_url': 'https://www.kommersant.ru/doc/4347456',
86
- 'right_url': 'https://tass.ru/kosmos/8488527',
87
- 'left_title': 'NASA: информация об отказе сотрудничать с Россией по освоению Луны некорректна',
88
- 'right_title': 'NASA назвало некорректными сообщения о нежелании США включать РФ в соглашение по Луне',
89
- 'left_timestamp': datetime.datetime(2020, 5, 15, 19, 46, 20),
90
- 'right_timestamp': datetime.datetime(2020, 5, 15, 19, 21, 36),
91
- 'label': 0,
92
- 'result': 'not_cause',
93
- 'agreement': 1.0,
94
- 'id': 'ru_tg_101',
95
- 'has_link': True
96
- }
97
- ```
98
-
99
- ### Data Splits
100
-
101
- | Dataset | Split | Number of Instances |
102
- |:---------|:---------|:---------|
103
- | ru_simple | train | 7,641 |
104
- | | validation | 955 |
105
- | | test | 957 |
106
- | en_simple | train | 4,332 |
107
- | | validation | 542 |
108
- | | test | 542 |
109
- | ru_full | train | 5,713 |
110
- | | validation | 715 |
111
- | | test | 715 |
112
- | en_full | train | 2,009 |
113
- | | validation | 251 |
114
- | | test | 252 |
115
-
116
- ## Dataset Creation
117
-
118
- ### Curation Rationale
119
-
120
- [More Information Needed]
121
-
122
- ### Source Data
123
-
124
- #### Initial Data Collection and Normalization
125
-
126
- [More Information Needed]
127
-
128
- #### Who are the source language producers?
129
-
130
- [More Information Needed]
131
-
132
- ### Annotations
133
-
134
- #### Annotation process
135
-
136
- Every candidate pair was annotated with [Yandex Toloka](https://toloka.ai/), a crowdsourcing platform. The task was to determine a relationship between two headlines, A and B. There were seven possible options: titles are almost the same, A causes B, B causes A, A refutes B, B refutes A, A linked with B in another way, A is not linked to B. An annotation guideline was in Russian for Russian news and in English for English news.
137
-
138
- Guidelines:
139
- * Russian: [link](https://ilyagusev.github.io/HeadlineCause/toloka/ru/instruction.html)
140
- * English: [link](https://ilyagusev.github.io/HeadlineCause/toloka/en/instruction.html)
141
-
142
- Ten workers annotated every pair. The total annotation budget was 870$, with the estimated hourly wage paid to participants of 45 cents. Annotation management was semi-automatic. Scripts are available in the [Github repository](https://github.com/IlyaGusev/HeadlineCause).
143
-
144
- #### Who are the annotators?
145
-
146
- Yandex Toloka workers were the annotators, 457 workers for the Russian part, 180 workers for the English part.
147
-
148
- ### Personal and Sensitive Information
149
-
150
- The dataset is not anonymized, so individuals' names can be found in the dataset. Information about the original author is not included in the dataset. No information about annotators is included except a platform worker ID.
151
-
152
- ## Considerations for Using the Data
153
-
154
- ### Social Impact of Dataset
155
-
156
- We do not see any direct malicious applications of our work. The data probably do not contain offensive content, as news agencies usually do not produce it, and a keyword search returned nothing. However, there are news documents in the dataset on several sensitive topics.
157
-
158
- ### Discussion of Biases
159
-
160
- [More Information Needed]
161
-
162
- ### Other Known Limitations
163
-
164
- [More Information Needed]
165
-
166
- ## Additional Information
167
-
168
- ### Dataset Curators
169
-
170
- The data was collected by Ilya Gusev.
171
-
172
- ### Licensing Information
173
-
174
- [More Information Needed]
175
-
176
- ### Citation Information
177
-
178
- ```bibtex
179
- @misc{gusev2021headlinecause,
180
- title={HeadlineCause: A Dataset of News Headlines for Detecting Causalities},
181
- author={Ilya Gusev and Alexey Tikhonov},
182
- year={2021},
183
- eprint={2108.12626},
184
- archivePrefix={arXiv},
185
- primaryClass={cs.CL}
186
- }
187
- ```
188
-
189
- ### Contributions
190
-
191
- [N/A]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1,454 +0,0 @@
1
- {
2
- "ru_simple": {
3
- "description": "A Dataset of News Headlines for Detecting Casualties",
4
- "citation": "\n@misc{gusev2021headlinecause,\n title={HeadlineCause: A Dataset of News Headlines for Detecting Casualties},\n author={Ilya Gusev and Alexey Tikhonov},\n year={2021},\n eprint={2108.12626},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n",
5
- "homepage": "https://github.com/IlyaGusev/HeadlineCause",
6
- "license": "",
7
- "features": {
8
- "left_url": {
9
- "dtype": "string",
10
- "id": null,
11
- "_type": "Value"
12
- },
13
- "right_url": {
14
- "dtype": "string",
15
- "id": null,
16
- "_type": "Value"
17
- },
18
- "left_title": {
19
- "dtype": "string",
20
- "id": null,
21
- "_type": "Value"
22
- },
23
- "right_title": {
24
- "dtype": "string",
25
- "id": null,
26
- "_type": "Value"
27
- },
28
- "left_timestamp": {
29
- "dtype": "timestamp[s]",
30
- "id": null,
31
- "_type": "Value"
32
- },
33
- "right_timestamp": {
34
- "dtype": "timestamp[s]",
35
- "id": null,
36
- "_type": "Value"
37
- },
38
- "id": {
39
- "dtype": "string",
40
- "id": null,
41
- "_type": "Value"
42
- },
43
- "has_link": {
44
- "dtype": "bool",
45
- "id": null,
46
- "_type": "Value"
47
- },
48
- "label": {
49
- "dtype": "int8",
50
- "id": null,
51
- "_type": "Value"
52
- },
53
- "result": {
54
- "dtype": "string",
55
- "id": null,
56
- "_type": "Value"
57
- },
58
- "agreement": {
59
- "dtype": "float64",
60
- "id": null,
61
- "_type": "Value"
62
- }
63
- },
64
- "post_processed": null,
65
- "supervised_keys": null,
66
- "task_templates": null,
67
- "builder_name": "headline_cause_dataset",
68
- "config_name": "ru_simple",
69
- "version": {
70
- "version_str": "1.1.0",
71
- "description": null,
72
- "major": 1,
73
- "minor": 1,
74
- "patch": 0
75
- },
76
- "splits": {
77
- "train": {
78
- "name": "train",
79
- "num_bytes": 3220815,
80
- "num_examples": 7641,
81
- "dataset_name": "headline_cause_dataset"
82
- },
83
- "test": {
84
- "name": "test",
85
- "num_bytes": 399562,
86
- "num_examples": 957,
87
- "dataset_name": "headline_cause_dataset"
88
- },
89
- "validation": {
90
- "name": "validation",
91
- "num_bytes": 413019,
92
- "num_examples": 955,
93
- "dataset_name": "headline_cause_dataset"
94
- }
95
- },
96
- "download_checksums": {
97
- "ru/simple/train.jsonl": {
98
- "num_bytes": 4383037,
99
- "checksum": "eb6cf7ef69783a0389b4fc26a7f6910d855c242728fb13afece0b0986f2d0c1a"
100
- },
101
- "ru/simple/val.jsonl": {
102
- "num_bytes": 558303,
103
- "checksum": "371e1af60a525d53584c4567c9f31c8a067acf36ca638bf4586fea389eaae798"
104
- },
105
- "ru/simple/test.jsonl": {
106
- "num_bytes": 545068,
107
- "checksum": "40b25679fb3c9e86315fa6c7406f5ab2290200aebbeaf8cf8f2d29d6d872a268"
108
- }
109
- },
110
- "download_size": 5486408,
111
- "post_processing_size": null,
112
- "dataset_size": 4033396,
113
- "size_in_bytes": 9519804
114
- },
115
- "en_simple": {
116
- "description": "A Dataset of News Headlines for Detecting Casualties",
117
- "citation": "\n@misc{gusev2021headlinecause,\n title={HeadlineCause: A Dataset of News Headlines for Detecting Casualties},\n author={Ilya Gusev and Alexey Tikhonov},\n year={2021},\n eprint={2108.12626},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n",
118
- "homepage": "https://github.com/IlyaGusev/HeadlineCause",
119
- "license": "",
120
- "features": {
121
- "left_url": {
122
- "dtype": "string",
123
- "id": null,
124
- "_type": "Value"
125
- },
126
- "right_url": {
127
- "dtype": "string",
128
- "id": null,
129
- "_type": "Value"
130
- },
131
- "left_title": {
132
- "dtype": "string",
133
- "id": null,
134
- "_type": "Value"
135
- },
136
- "right_title": {
137
- "dtype": "string",
138
- "id": null,
139
- "_type": "Value"
140
- },
141
- "left_timestamp": {
142
- "dtype": "timestamp[s]",
143
- "id": null,
144
- "_type": "Value"
145
- },
146
- "right_timestamp": {
147
- "dtype": "timestamp[s]",
148
- "id": null,
149
- "_type": "Value"
150
- },
151
- "id": {
152
- "dtype": "string",
153
- "id": null,
154
- "_type": "Value"
155
- },
156
- "has_link": {
157
- "dtype": "bool",
158
- "id": null,
159
- "_type": "Value"
160
- },
161
- "label": {
162
- "dtype": "int8",
163
- "id": null,
164
- "_type": "Value"
165
- },
166
- "result": {
167
- "dtype": "string",
168
- "id": null,
169
- "_type": "Value"
170
- },
171
- "agreement": {
172
- "dtype": "float64",
173
- "id": null,
174
- "_type": "Value"
175
- }
176
- },
177
- "post_processed": null,
178
- "supervised_keys": null,
179
- "task_templates": null,
180
- "builder_name": "headline_cause_dataset",
181
- "config_name": "en_simple",
182
- "version": {
183
- "version_str": "1.1.0",
184
- "description": null,
185
- "major": 1,
186
- "minor": 1,
187
- "patch": 0
188
- },
189
- "splits": {
190
- "train": {
191
- "name": "train",
192
- "num_bytes": 1841714,
193
- "num_examples": 4332,
194
- "dataset_name": "headline_cause_dataset"
195
- },
196
- "test": {
197
- "name": "test",
198
- "num_bytes": 230462,
199
- "num_examples": 542,
200
- "dataset_name": "headline_cause_dataset"
201
- },
202
- "validation": {
203
- "name": "validation",
204
- "num_bytes": 224969,
205
- "num_examples": 542,
206
- "dataset_name": "headline_cause_dataset"
207
- }
208
- },
209
- "download_checksums": {
210
- "en/simple/train.jsonl": {
211
- "num_bytes": 2500156,
212
- "checksum": "56d52743c1fce590231f21f1ea5f4f7a8126788c3d3bf02270913dc73a13ade0"
213
- },
214
- "en/simple/val.jsonl": {
215
- "num_bytes": 307293,
216
- "checksum": "56a294418d8e02a0971725bb2b02dc06716d0a10194947dbcc2d477428c23f84"
217
- },
218
- "en/simple/test.jsonl": {
219
- "num_bytes": 312824,
220
- "checksum": "2328c60ab30d2df91175571eac3ca2483f4e7f25274d406af26a1f08c8922a56"
221
- }
222
- },
223
- "download_size": 3120273,
224
- "post_processing_size": null,
225
- "dataset_size": 2297145,
226
- "size_in_bytes": 5417418
227
- },
228
- "ru_full": {
229
- "description": "A Dataset of News Headlines for Detecting Casualties",
230
- "citation": "\n@misc{gusev2021headlinecause,\n title={HeadlineCause: A Dataset of News Headlines for Detecting Casualties},\n author={Ilya Gusev and Alexey Tikhonov},\n year={2021},\n eprint={2108.12626},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n",
231
- "homepage": "https://github.com/IlyaGusev/HeadlineCause",
232
- "license": "",
233
- "features": {
234
- "left_url": {
235
- "dtype": "string",
236
- "id": null,
237
- "_type": "Value"
238
- },
239
- "right_url": {
240
- "dtype": "string",
241
- "id": null,
242
- "_type": "Value"
243
- },
244
- "left_title": {
245
- "dtype": "string",
246
- "id": null,
247
- "_type": "Value"
248
- },
249
- "right_title": {
250
- "dtype": "string",
251
- "id": null,
252
- "_type": "Value"
253
- },
254
- "left_timestamp": {
255
- "dtype": "timestamp[s]",
256
- "id": null,
257
- "_type": "Value"
258
- },
259
- "right_timestamp": {
260
- "dtype": "timestamp[s]",
261
- "id": null,
262
- "_type": "Value"
263
- },
264
- "id": {
265
- "dtype": "string",
266
- "id": null,
267
- "_type": "Value"
268
- },
269
- "has_link": {
270
- "dtype": "bool",
271
- "id": null,
272
- "_type": "Value"
273
- },
274
- "label": {
275
- "dtype": "int8",
276
- "id": null,
277
- "_type": "Value"
278
- },
279
- "result": {
280
- "dtype": "string",
281
- "id": null,
282
- "_type": "Value"
283
- },
284
- "agreement": {
285
- "dtype": "float64",
286
- "id": null,
287
- "_type": "Value"
288
- }
289
- },
290
- "post_processed": null,
291
- "supervised_keys": null,
292
- "task_templates": null,
293
- "builder_name": "headline_cause_dataset",
294
- "config_name": "ru_full",
295
- "version": {
296
- "version_str": "1.1.0",
297
- "description": null,
298
- "major": 1,
299
- "minor": 1,
300
- "patch": 0
301
- },
302
- "splits": {
303
- "train": {
304
- "name": "train",
305
- "num_bytes": 2374944,
306
- "num_examples": 5713,
307
- "dataset_name": "headline_cause_dataset"
308
- },
309
- "test": {
310
- "name": "test",
311
- "num_bytes": 294328,
312
- "num_examples": 715,
313
- "dataset_name": "headline_cause_dataset"
314
- },
315
- "validation": {
316
- "name": "validation",
317
- "num_bytes": 305465,
318
- "num_examples": 715,
319
- "dataset_name": "headline_cause_dataset"
320
- }
321
- },
322
- "download_checksums": {
323
- "ru/full/train.jsonl": {
324
- "num_bytes": 3243725,
325
- "checksum": "57e8b029aeb9ddeb8f78c9caae992ac9444158c3f6b39714bab342ece051e938"
326
- },
327
- "ru/full/val.jsonl": {
328
- "num_bytes": 414181,
329
- "checksum": "3aca2c5f4f9a410e5e85deaa9892e6e17c331c3d1cde8ab954ecbfde4f9c5337"
330
- },
331
- "ru/full/test.jsonl": {
332
- "num_bytes": 403090,
333
- "checksum": "b6acfef1c3d911aaed538322fadf424cdd579a5268b5104908edc3a94db350b4"
334
- }
335
- },
336
- "download_size": 4060996,
337
- "post_processing_size": null,
338
- "dataset_size": 2974737,
339
- "size_in_bytes": 7035733
340
- },
341
- "en_full": {
342
- "description": "A Dataset of News Headlines for Detecting Casualties",
343
- "citation": "\n@misc{gusev2021headlinecause,\n title={HeadlineCause: A Dataset of News Headlines for Detecting Casualties},\n author={Ilya Gusev and Alexey Tikhonov},\n year={2021},\n eprint={2108.12626},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n",
344
- "homepage": "https://github.com/IlyaGusev/HeadlineCause",
345
- "license": "",
346
- "features": {
347
- "left_url": {
348
- "dtype": "string",
349
- "id": null,
350
- "_type": "Value"
351
- },
352
- "right_url": {
353
- "dtype": "string",
354
- "id": null,
355
- "_type": "Value"
356
- },
357
- "left_title": {
358
- "dtype": "string",
359
- "id": null,
360
- "_type": "Value"
361
- },
362
- "right_title": {
363
- "dtype": "string",
364
- "id": null,
365
- "_type": "Value"
366
- },
367
- "left_timestamp": {
368
- "dtype": "timestamp[s]",
369
- "id": null,
370
- "_type": "Value"
371
- },
372
- "right_timestamp": {
373
- "dtype": "timestamp[s]",
374
- "id": null,
375
- "_type": "Value"
376
- },
377
- "id": {
378
- "dtype": "string",
379
- "id": null,
380
- "_type": "Value"
381
- },
382
- "has_link": {
383
- "dtype": "bool",
384
- "id": null,
385
- "_type": "Value"
386
- },
387
- "label": {
388
- "dtype": "int8",
389
- "id": null,
390
- "_type": "Value"
391
- },
392
- "result": {
393
- "dtype": "string",
394
- "id": null,
395
- "_type": "Value"
396
- },
397
- "agreement": {
398
- "dtype": "float64",
399
- "id": null,
400
- "_type": "Value"
401
- }
402
- },
403
- "post_processed": null,
404
- "supervised_keys": null,
405
- "task_templates": null,
406
- "builder_name": "headline_cause_dataset",
407
- "config_name": "en_full",
408
- "version": {
409
- "version_str": "1.1.0",
410
- "description": null,
411
- "major": 1,
412
- "minor": 1,
413
- "patch": 0
414
- },
415
- "splits": {
416
- "train": {
417
- "name": "train",
418
- "num_bytes": 852680,
419
- "num_examples": 2009,
420
- "dataset_name": "headline_cause_dataset"
421
- },
422
- "test": {
423
- "name": "test",
424
- "num_bytes": 105996,
425
- "num_examples": 252,
426
- "dataset_name": "headline_cause_dataset"
427
- },
428
- "validation": {
429
- "name": "validation",
430
- "num_bytes": 103405,
431
- "num_examples": 251,
432
- "dataset_name": "headline_cause_dataset"
433
- }
434
- },
435
- "download_checksums": {
436
- "en/full/train.jsonl": {
437
- "num_bytes": 1158002,
438
- "checksum": "2144a7107247058d18ea4bcf1b557ed4bc073fe350f9dd90543fb79db40c050c"
439
- },
440
- "en/full/val.jsonl": {
441
- "num_bytes": 141511,
442
- "checksum": "6b7914781c38931fc888d68c0972ad9d920439665ea174dc680d39fe4b18562c"
443
- },
444
- "en/full/test.jsonl": {
445
- "num_bytes": 144284,
446
- "checksum": "3d3126472493680a1ccad3f11043b884d061712e09763296853bcefd7ffca2a5"
447
- }
448
- },
449
- "download_size": 1443797,
450
- "post_processing_size": null,
451
- "dataset_size": 1062081,
452
- "size_in_bytes": 2505878
453
- }
454
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
en/docs.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e612a9cd0a40b27ccd273a2739b5db7b1fb191b1c36c657aa8bc1de40335b1b
3
- size 95677801
 
 
 
 
en/raw.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:691343bb5f6eac5bbb106ece9de8abd8ac7af1df30f397ea85dfd273c899572a
3
- size 60181169
 
 
 
 
en/simple/train.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:56d52743c1fce590231f21f1ea5f4f7a8126788c3d3bf02270913dc73a13ade0
3
- size 2500156
 
 
 
 
en/full/val.jsonl → en_full/headline_cause-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6b7914781c38931fc888d68c0972ad9d920439665ea174dc680d39fe4b18562c
3
- size 141511
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e63c8ba9ad1ec76473e99a94af6a6cea87377bb219d575a19fcabe5c0d64f97
3
+ size 76267
en/simple/test.jsonl → en_full/headline_cause-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2328c60ab30d2df91175571eac3ca2483f4e7f25274d406af26a1f08c8922a56
3
- size 312824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc378cd572c6a87da1806e97de4d80b53a0c4e595ea554a5489ca68f3c89a955
3
+ size 532856
en/simple/val.jsonl → en_full/headline_cause-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:56a294418d8e02a0971725bb2b02dc06716d0a10194947dbcc2d477428c23f84
3
- size 307293
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3212d6954aa2a32c8e2ec26e82cf02bb185d631810846899b036243e39b758d1
3
+ size 75149
en/full/test.jsonl → en_simple/headline_cause-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3d3126472493680a1ccad3f11043b884d061712e09763296853bcefd7ffca2a5
3
- size 144284
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:144777045eb9b0c363325f0b633c648e8e35cd0c1c0f07ef3c92b03257ea63e6
3
+ size 147643
en/agg.jsonl → en_simple/headline_cause-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a67d98f2a6198c02127bac4755cdf6181af1bcb72e163913d8558632b5386ca
3
- size 6890506
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd0efda9aec8c242411c0ad46bc51e55fc54bf48e71ac2ca695617bcfd60b40e
3
+ size 1128430
en_simple/headline_cause-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f06ae97f3cc4c12d4a37c3b7e028e76bb946fa8f9ba29980505df262b1f48ad
3
+ size 145411
headline_cause.py DELETED
@@ -1,110 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2021 The HuggingFace Datasets Authors and Ilya Gusev
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
- """HeadlineCause: A Dataset of News Headlines for Detecting Casualties"""
16
-
17
- import json
18
- import os
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """
24
- @misc{gusev2021headlinecause,
25
- title={HeadlineCause: A Dataset of News Headlines for Detecting Casualties},
26
- author={Ilya Gusev and Alexey Tikhonov},
27
- year={2021},
28
- eprint={2108.12626},
29
- archivePrefix={arXiv},
30
- primaryClass={cs.CL}
31
- }
32
- """
33
-
34
- _DESCRIPTION = "A Dataset of News Headlines for Detecting Casualties"
35
- _HOMEPAGE = "https://github.com/IlyaGusev/HeadlineCause"
36
- _URLS = {
37
- "ru_simple": {
38
- "train": "ru/simple/train.jsonl",
39
- "val": "ru/simple/val.jsonl",
40
- "test": "ru/simple/test.jsonl"
41
- },
42
- "ru_full": {
43
- "train": "ru/full/train.jsonl",
44
- "val": "ru/full/val.jsonl",
45
- "test": "ru/full/test.jsonl"
46
- },
47
- "en_simple": {
48
- "train": "en/simple/train.jsonl",
49
- "val": "en/simple/val.jsonl",
50
- "test": "en/simple/test.jsonl"
51
- },
52
- "en_full": {
53
- "train": "en/full/train.jsonl",
54
- "val": "en/full/val.jsonl",
55
- "test": "en/full/test.jsonl",
56
- }
57
- }
58
-
59
-
60
- class HeadlineCauseDataset(datasets.GeneratorBasedBuilder):
61
- """HeadlineCause Dataset"""
62
-
63
- VERSION = datasets.Version("1.1.0")
64
-
65
- BUILDER_CONFIGS = [
66
- datasets.BuilderConfig(name="ru_simple", version=VERSION, description="Russian language, Simple task"),
67
- datasets.BuilderConfig(name="en_simple", version=VERSION, description="English language, Simple task"),
68
- datasets.BuilderConfig(name="ru_full", version=VERSION, description="Russian language, Full task"),
69
- datasets.BuilderConfig(name="en_full", version=VERSION, description="English language, Full task"),
70
- ]
71
-
72
- DEFAULT_CONFIG_NAME = "en_simple"
73
-
74
- def _info(self):
75
- features = datasets.Features(
76
- {
77
- "left_url": datasets.Value("string"),
78
- "right_url": datasets.Value("string"),
79
- "left_title": datasets.Value("string"),
80
- "right_title": datasets.Value("string"),
81
- "left_timestamp": datasets.Value("timestamp[s]"),
82
- "right_timestamp": datasets.Value("timestamp[s]"),
83
- "id": datasets.Value("string"),
84
- "has_link": datasets.Value("bool"),
85
- "label": datasets.Value("int8"),
86
- "result": datasets.Value("string"),
87
- "agreement": datasets.Value("double")
88
- }
89
- )
90
- return datasets.DatasetInfo(
91
- description=_DESCRIPTION,
92
- features=features,
93
- supervised_keys=None,
94
- homepage=_HOMEPAGE,
95
- citation=_CITATION,
96
- )
97
-
98
- def _split_generators(self, dl_manager):
99
- downloaded_files = dl_manager.download_and_extract(_URLS[self.config.name])
100
- return [
101
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
102
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
103
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["val"]}),
104
- ]
105
-
106
- def _generate_examples(self, filepath):
107
- with open(filepath, encoding="utf-8") as f:
108
- for row in f:
109
- data = json.loads(row)
110
- yield data["id"], data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ru/agg.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a290731fa41f51c79d7da9b8a900053bcac1f3e3c1478ba25706e403a84b7578
3
- size 7837741
 
 
 
 
ru/docs.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cc8a9b379a8fe34d679e89104b8c335dcf8d110d741023b79fe44b583d1d5602
3
- size 123900149
 
 
 
 
ru/final.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:63d903403dda1cd4f2a13a742f8f50f0864a8d787371d1e2e8bbb1c972d092ea
3
- size 9038101
 
 
 
 
ru/full/test.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b6acfef1c3d911aaed538322fadf424cdd579a5268b5104908edc3a94db350b4
3
- size 403090
 
 
 
 
ru/full/train.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:57e8b029aeb9ddeb8f78c9caae992ac9444158c3f6b39714bab342ece051e938
3
- size 3243725
 
 
 
 
ru/full/val.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3aca2c5f4f9a410e5e85deaa9892e6e17c331c3d1cde8ab954ecbfde4f9c5337
3
- size 414181
 
 
 
 
ru/raw.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ca037c7d3a3de2f5ddaa724dad3cade07b990262aa75a295776c6a33bdedb44d
3
- size 66771060
 
 
 
 
ru/simple/test.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:40b25679fb3c9e86315fa6c7406f5ab2290200aebbeaf8cf8f2d29d6d872a268
3
- size 545068
 
 
 
 
ru/simple/train.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb6cf7ef69783a0389b4fc26a7f6910d855c242728fb13afece0b0986f2d0c1a
3
- size 4383037
 
 
 
 
ru/simple/val.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:371e1af60a525d53584c4567c9f31c8a067acf36ca638bf4586fea389eaae798
3
- size 558303
 
 
 
 
ru_full/headline_cause-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b91740e586c38ff8e71cb41f14d49a2bb966576aee6ed6f0964dfe8c1a56a6e7
3
+ size 138062
en/full/train.jsonl → ru_full/headline_cause-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2144a7107247058d18ea4bcf1b557ed4bc073fe350f9dd90543fb79db40c050c
3
- size 1158002
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34311942d8ac7ba7b784e9f13f17d06e5a32a62e96d04728c5bb7119397b79c6
3
+ size 1018575
ru_full/headline_cause-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b98def6bea2ba8cb2ee223edcbf56685d35ce0deb6850f2f11b5004589a6a06d
3
+ size 141747
ru_simple/headline_cause-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c9e49d8f95d53fb4051fd0633ef9fbdc28a066b2db32535a9788591ffe44f66
3
+ size 184536
en/final.jsonl → ru_simple/headline_cause-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d8e1b69e9c528c5332329cd6b744042308036c8d6f9379ad1786117af38fe3d6
3
- size 7483206
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc9c617f620a9f6e44b0b817e4d4e80dd75ecf72737f974f3c4d5a6040c7b013
3
+ size 1398874
ru_simple/headline_cause-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db094826cb4895ae391291055ce63880d66d24af27b5291f5f0cf6a87acd0dea
3
+ size 188266