system HF staff commited on
Commit
698223e
1 Parent(s): 521533d

Update files from the datasets library (from 1.3.0)

Browse files

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

Files changed (3) hide show
  1. README.md +183 -0
  2. dataset_infos.json +1 -1
  3. scifact.py +8 -9
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ ---
3
+
4
+ # Dataset Card for "scifact"
5
+
6
+ ## Table of Contents
7
+ - [Dataset Description](#dataset-description)
8
+ - [Dataset Summary](#dataset-summary)
9
+ - [Supported Tasks](#supported-tasks)
10
+ - [Languages](#languages)
11
+ - [Dataset Structure](#dataset-structure)
12
+ - [Data Instances](#data-instances)
13
+ - [Data Fields](#data-fields)
14
+ - [Data Splits Sample Size](#data-splits-sample-size)
15
+ - [Dataset Creation](#dataset-creation)
16
+ - [Curation Rationale](#curation-rationale)
17
+ - [Source Data](#source-data)
18
+ - [Annotations](#annotations)
19
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
20
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
21
+ - [Social Impact of Dataset](#social-impact-of-dataset)
22
+ - [Discussion of Biases](#discussion-of-biases)
23
+ - [Other Known Limitations](#other-known-limitations)
24
+ - [Additional Information](#additional-information)
25
+ - [Dataset Curators](#dataset-curators)
26
+ - [Licensing Information](#licensing-information)
27
+ - [Citation Information](#citation-information)
28
+ - [Contributions](#contributions)
29
+
30
+ ## [Dataset Description](#dataset-description)
31
+
32
+ - **Homepage:** [https://scifact.apps.allenai.org/](https://scifact.apps.allenai.org/)
33
+ - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
34
+ - **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
35
+ - **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
36
+ - **Size of downloaded dataset files:** 5.43 MB
37
+ - **Size of the generated dataset:** 7.88 MB
38
+ - **Total amount of disk used:** 13.32 MB
39
+
40
+ ### [Dataset Summary](#dataset-summary)
41
+
42
+ SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales
43
+
44
+ ### [Supported Tasks](#supported-tasks)
45
+
46
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
+
48
+ ### [Languages](#languages)
49
+
50
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
51
+
52
+ ## [Dataset Structure](#dataset-structure)
53
+
54
+ We show detailed information for up to 5 configurations of the dataset.
55
+
56
+ ### [Data Instances](#data-instances)
57
+
58
+ #### claims
59
+
60
+ - **Size of downloaded dataset files:** 2.72 MB
61
+ - **Size of the generated dataset:** 0.25 MB
62
+ - **Total amount of disk used:** 2.97 MB
63
+
64
+ An example of 'validation' looks as follows.
65
+ ```
66
+ {
67
+ "cited_doc_ids": [14717500],
68
+ "claim": "1,000 genomes project enables mapping of genetic sequence variation consisting of rare variants with larger penetrance effects than common variants.",
69
+ "evidence_doc_id": "14717500",
70
+ "evidence_label": "SUPPORT",
71
+ "evidence_sentences": [2, 5],
72
+ "id": 3
73
+ }
74
+ ```
75
+
76
+ #### corpus
77
+
78
+ - **Size of downloaded dataset files:** 2.72 MB
79
+ - **Size of the generated dataset:** 7.63 MB
80
+ - **Total amount of disk used:** 10.35 MB
81
+
82
+ An example of 'train' looks as follows.
83
+ ```
84
+ This example was too long and was cropped:
85
+
86
+ {
87
+ "abstract": "[\"Alterations of the architecture of cerebral white matter in the developing human brain can affect cortical development and res...",
88
+ "doc_id": 4983,
89
+ "structured": false,
90
+ "title": "Microstructural development of human newborn cerebral white matter assessed in vivo by diffusion tensor magnetic resonance imaging."
91
+ }
92
+ ```
93
+
94
+ ### [Data Fields](#data-fields)
95
+
96
+ The data fields are the same among all splits.
97
+
98
+ #### claims
99
+ - `id`: a `int32` feature.
100
+ - `claim`: a `string` feature.
101
+ - `evidence_doc_id`: a `string` feature.
102
+ - `evidence_label`: a `string` feature.
103
+ - `evidence_sentences`: a `list` of `int32` features.
104
+ - `cited_doc_ids`: a `list` of `int32` features.
105
+
106
+ #### corpus
107
+ - `doc_id`: a `int32` feature.
108
+ - `title`: a `string` feature.
109
+ - `abstract`: a `list` of `string` features.
110
+ - `structured`: a `bool` feature.
111
+
112
+ ### [Data Splits Sample Size](#data-splits-sample-size)
113
+
114
+ #### claims
115
+
116
+ | |train|validation|test|
117
+ |------|----:|---------:|---:|
118
+ |claims| 1261| 450| 300|
119
+
120
+ #### corpus
121
+
122
+ | |train|
123
+ |------|----:|
124
+ |corpus| 5183|
125
+
126
+ ## [Dataset Creation](#dataset-creation)
127
+
128
+ ### [Curation Rationale](#curation-rationale)
129
+
130
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
131
+
132
+ ### [Source Data](#source-data)
133
+
134
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
135
+
136
+ ### [Annotations](#annotations)
137
+
138
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
139
+
140
+ ### [Personal and Sensitive Information](#personal-and-sensitive-information)
141
+
142
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
143
+
144
+ ## [Considerations for Using the Data](#considerations-for-using-the-data)
145
+
146
+ ### [Social Impact of Dataset](#social-impact-of-dataset)
147
+
148
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
149
+
150
+ ### [Discussion of Biases](#discussion-of-biases)
151
+
152
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
153
+
154
+ ### [Other Known Limitations](#other-known-limitations)
155
+
156
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
157
+
158
+ ## [Additional Information](#additional-information)
159
+
160
+ ### [Dataset Curators](#dataset-curators)
161
+
162
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
163
+
164
+ ### [Licensing Information](#licensing-information)
165
+
166
+ [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
167
+
168
+ ### [Citation Information](#citation-information)
169
+
170
+ ```
171
+ @inproceedings{scifact2020
172
+ title={ Fact or Fiction: Verifying Scientific Claims},
173
+ author={David, Wadden and Kyle, Lo and Lucy Lu, Wang and Shanchuan, Lin and Madeleine van, Zuylen and Arman, Cohan and Hannaneh, Hajishirzi},
174
+ booktitle={2011 AAAI Spring Symposium Series},
175
+ year={2020},
176
+ }
177
+
178
+ ```
179
+
180
+
181
+ ### Contributions
182
+
183
+ Thanks to [@thomwolf](https://github.com/thomwolf), [@lhoestq](https://github.com/lhoestq), [@dwadden](https://github.com/dwadden), [@patrickvonplaten](https://github.com/patrickvonplaten), [@mariamabarham](https://github.com/mariamabarham), [@lewtun](https://github.com/lewtun) for adding this dataset.
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"corpus": {"description": "SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales\n", "citation": "@inproceedings{scifact2020\n title={ Fact or Fiction: Verifying Scientific Claims},\n author={David, Wadden and Kyle, Lo and Lucy Lu, Wang and Shanchuan, Lin and Madeleine van, Zuylen and Arman, Cohan and Hannaneh, Hajishirzi},\n booktitle={2011 AAAI Spring Symposium Series},\n year={2020},\n}\n", "homepage": "https://scifact.apps.allenai.org/", "license": "", "features": {"doc_id": {"dtype": "int32", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "abstract": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "structured": {"dtype": "bool", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scifact", "config_name": "corpus", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 8002556, "num_examples": 5183, "dataset_name": "scifact"}}, "download_checksums": {"https://ai2-s2-scifact.s3-us-west-2.amazonaws.com/release/2020-05-01/data.tar.gz": {"num_bytes": 2848693, "checksum": "108c19d1a6e2522f20055fe503450c6af8c9c12a095fd727f21894cc44eb47aa"}}, "download_size": 2848693, "dataset_size": 8002556, "size_in_bytes": 10851249}, "claims": {"description": "SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales\n", "citation": "@inproceedings{scifact2020\n title={ Fact or Fiction: Verifying Scientific Claims},\n author={David, Wadden and Kyle, Lo and Lucy Lu, Wang and Shanchuan, Lin and Madeleine van, Zuylen and Arman, Cohan and Hannaneh, Hajishirzi},\n booktitle={2011 AAAI Spring Symposium Series},\n year={2020},\n}\n", "homepage": "https://scifact.apps.allenai.org/", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "claim": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_doc_id": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_label": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_sentences": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "cited_doc_ids": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "supervised_keys": null, "builder_name": "scifact", "config_name": "claims", "version": {"version_str": "1.0.0", "description": "", "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 170070, "num_examples": 1261, "dataset_name": "scifact"}, "test": {"name": "test", "num_bytes": 33899, "num_examples": 300, "dataset_name": "scifact"}, "validation": {"name": "validation", "num_bytes": 60882, "num_examples": 450, "dataset_name": "scifact"}}, "download_checksums": {"https://ai2-s2-scifact.s3-us-west-2.amazonaws.com/release/2020-05-01/data.tar.gz": {"num_bytes": 2848693, "checksum": "108c19d1a6e2522f20055fe503450c6af8c9c12a095fd727f21894cc44eb47aa"}}, "download_size": 2848693, "dataset_size": 264851, "size_in_bytes": 3113544}}
 
1
+ {"corpus": {"description": "SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales.\n", "citation": "@inproceedings{Wadden2020FactOF,\n title={Fact or Fiction: Verifying Scientific Claims},\n author={David Wadden and Shanchuan Lin and Kyle Lo and Lucy Lu Wang and Madeleine van Zuylen and Arman Cohan and Hannaneh Hajishirzi},\n booktitle={EMNLP},\n year={2020},\n}\n", "homepage": "https://scifact.apps.allenai.org/", "license": "", "features": {"doc_id": {"dtype": "int32", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "abstract": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "structured": {"dtype": "bool", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "scifact", "config_name": "corpus", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 7993572, "num_examples": 5183, "dataset_name": "scifact"}}, "download_checksums": {"https://scifact.s3-us-west-2.amazonaws.com/release/latest/data.tar.gz": {"num_bytes": 3115079, "checksum": "11c621288d41ac144d29b13b0f8503b3820b7d6e8b1f6ff24dff335c196d76be"}}, "download_size": 3115079, "post_processing_size": null, "dataset_size": 7993572, "size_in_bytes": 11108651}, "claims": {"description": "SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales.\n", "citation": "@inproceedings{Wadden2020FactOF,\n title={Fact or Fiction: Verifying Scientific Claims},\n author={David Wadden and Shanchuan Lin and Kyle Lo and Lucy Lu Wang and Madeleine van Zuylen and Arman Cohan and Hannaneh Hajishirzi},\n booktitle={EMNLP},\n year={2020},\n}\n", "homepage": "https://scifact.apps.allenai.org/", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "claim": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_doc_id": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_label": {"dtype": "string", "id": null, "_type": "Value"}, "evidence_sentences": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "cited_doc_ids": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "scifact", "config_name": "claims", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 168627, "num_examples": 1261, "dataset_name": "scifact"}, "test": {"name": "test", "num_bytes": 33625, "num_examples": 300, "dataset_name": "scifact"}, "validation": {"name": "validation", "num_bytes": 60360, "num_examples": 450, "dataset_name": "scifact"}}, "download_checksums": {"https://scifact.s3-us-west-2.amazonaws.com/release/latest/data.tar.gz": {"num_bytes": 3115079, "checksum": "11c621288d41ac144d29b13b0f8503b3820b7d6e8b1f6ff24dff335c196d76be"}}, "download_size": 3115079, "post_processing_size": null, "dataset_size": 262612, "size_in_bytes": 3377691}}
scifact.py CHANGED
@@ -1,4 +1,5 @@
1
- """TODO(scifact): Add a description here."""
 
2
 
3
  from __future__ import absolute_import, division, print_function
4
 
@@ -8,22 +9,20 @@ import os
8
  import datasets
9
 
10
 
11
- # TODO(scifact): BibTeX citation
12
  _CITATION = """\
13
- @inproceedings{scifact2020
14
- title={ Fact or Fiction: Verifying Scientific Claims},
15
- author={David, Wadden and Kyle, Lo and Lucy Lu, Wang and Shanchuan, Lin and Madeleine van, Zuylen and Arman, Cohan and Hannaneh, Hajishirzi},
16
- booktitle={2011 AAAI Spring Symposium Series},
17
  year={2020},
18
  }
19
  """
20
 
21
- # TODO(scifact):
22
  _DESCRIPTION = """\
23
- SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales
24
  """
25
 
26
- _URL = "https://ai2-s2-scifact.s3-us-west-2.amazonaws.com/release/2020-05-01/data.tar.gz"
27
 
28
 
29
  class ScifactConfig(datasets.BuilderConfig):
 
1
+ """Scientific fact-checking dataset. Verifies claims based on citation sentences
2
+ using evidence from the cited abstracts."""
3
 
4
  from __future__ import absolute_import, division, print_function
5
 
 
9
  import datasets
10
 
11
 
 
12
  _CITATION = """\
13
+ @inproceedings{Wadden2020FactOF,
14
+ title={Fact or Fiction: Verifying Scientific Claims},
15
+ author={David Wadden and Shanchuan Lin and Kyle Lo and Lucy Lu Wang and Madeleine van Zuylen and Arman Cohan and Hannaneh Hajishirzi},
16
+ booktitle={EMNLP},
17
  year={2020},
18
  }
19
  """
20
 
 
21
  _DESCRIPTION = """\
22
+ SciFact, a dataset of 1.4K expert-written scientific claims paired with evidence-containing abstracts, and annotated with labels and rationales.
23
  """
24
 
25
+ _URL = "https://scifact.s3-us-west-2.amazonaws.com/release/latest/data.tar.gz"
26
 
27
 
28
  class ScifactConfig(datasets.BuilderConfig):