Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
bc5bfd8
·
1 Parent(s): 6019c99

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,220 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - found
4
- language_creators:
5
- - found
6
- language:
7
- - en
8
- license:
9
- - cc0-1.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 10K<n<100K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - summarization
18
- task_ids: []
19
- paperswithcode_id: billsum
20
- pretty_name: BillSum
21
- train-eval-index:
22
- - config: default
23
- task: summarization
24
- task_id: summarization
25
- splits:
26
- train_split: train
27
- eval_split: test
28
- col_mapping:
29
- text: text
30
- summary: target
31
- metrics:
32
- - type: rouge
33
- name: Rouge
34
- tags:
35
- - bills-summarization
36
- dataset_info:
37
- features:
38
- - name: text
39
- dtype: string
40
- - name: summary
41
- dtype: string
42
- - name: title
43
- dtype: string
44
- splits:
45
- - name: train
46
- num_bytes: 219596090
47
- num_examples: 18949
48
- - name: test
49
- num_bytes: 37866257
50
- num_examples: 3269
51
- - name: ca_test
52
- num_bytes: 14945291
53
- num_examples: 1237
54
- download_size: 67260676
55
- dataset_size: 272407638
56
- ---
57
-
58
- # Dataset Card for "billsum"
59
-
60
- ## Table of Contents
61
- - [Dataset Description](#dataset-description)
62
- - [Dataset Summary](#dataset-summary)
63
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
64
- - [Languages](#languages)
65
- - [Dataset Structure](#dataset-structure)
66
- - [Data Instances](#data-instances)
67
- - [Data Fields](#data-fields)
68
- - [Data Splits](#data-splits)
69
- - [Dataset Creation](#dataset-creation)
70
- - [Curation Rationale](#curation-rationale)
71
- - [Source Data](#source-data)
72
- - [Annotations](#annotations)
73
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
74
- - [Considerations for Using the Data](#considerations-for-using-the-data)
75
- - [Social Impact of Dataset](#social-impact-of-dataset)
76
- - [Discussion of Biases](#discussion-of-biases)
77
- - [Other Known Limitations](#other-known-limitations)
78
- - [Additional Information](#additional-information)
79
- - [Dataset Curators](#dataset-curators)
80
- - [Licensing Information](#licensing-information)
81
- - [Citation Information](#citation-information)
82
- - [Contributions](#contributions)
83
-
84
- ## Dataset Description
85
-
86
- - **Homepage:** [https://github.com/FiscalNote/BillSum](https://github.com/FiscalNote/BillSum)
87
- - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
88
- - **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
89
- - **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
90
- - **Size of downloaded dataset files:** 64.14 MB
91
- - **Size of the generated dataset:** 259.80 MB
92
- - **Total amount of disk used:** 323.94 MB
93
-
94
- ### Dataset Summary
95
-
96
- BillSum, summarization of US Congressional and California state bills.
97
-
98
- There are several features:
99
- - text: bill text.
100
- - summary: summary of the bills.
101
- - title: title of the bills.
102
- features for us bills. ca bills does not have.
103
- - text_len: number of chars in text.
104
- - sum_len: number of chars in summary.
105
-
106
- ### Supported Tasks and Leaderboards
107
-
108
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
109
-
110
- ### Languages
111
-
112
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
113
-
114
- ## Dataset Structure
115
-
116
- ### Data Instances
117
-
118
- #### default
119
-
120
- - **Size of downloaded dataset files:** 64.14 MB
121
- - **Size of the generated dataset:** 259.80 MB
122
- - **Total amount of disk used:** 323.94 MB
123
-
124
- An example of 'train' looks as follows.
125
- ```
126
- {
127
- "summary": "some summary",
128
- "text": "some text.",
129
- "title": "An act to amend Section xxx."
130
- }
131
- ```
132
-
133
- ### Data Fields
134
-
135
- The data fields are the same among all splits.
136
-
137
- #### default
138
- - `text`: a `string` feature.
139
- - `summary`: a `string` feature.
140
- - `title`: a `string` feature.
141
-
142
- ### Data Splits
143
-
144
- | name |train|ca_test|test|
145
- |-------|----:|------:|---:|
146
- |default|18949| 1237|3269|
147
-
148
- ## Dataset Creation
149
-
150
- ### Curation Rationale
151
-
152
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
153
-
154
- ### Source Data
155
-
156
- #### Initial Data Collection and Normalization
157
-
158
- The data consists of three parts: US training bills, US test bills and California test bills. The US bills were collected from the [Govinfo](https://github.com/unitedstates/congress) service provided by the United States Government Publishing Office (GPO) under CC0-1.0 license. The California, bills from the 2015-2016 session are available from the legislature’s [website](https://leginfo.legislature.ca.gov/).
159
-
160
- #### Who are the source language producers?
161
-
162
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
163
-
164
- ### Annotations
165
-
166
- #### Annotation process
167
-
168
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
169
-
170
- #### Who are the annotators?
171
-
172
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
173
-
174
- ### Personal and Sensitive Information
175
-
176
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
177
-
178
- ## Considerations for Using the Data
179
-
180
- ### Social Impact of Dataset
181
-
182
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
183
-
184
- ### Discussion of Biases
185
-
186
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
187
-
188
- ### Other Known Limitations
189
-
190
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
191
-
192
- ## Additional Information
193
-
194
- ### Dataset Curators
195
-
196
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
197
-
198
- ### Licensing Information
199
-
200
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
201
-
202
- ### Citation Information
203
-
204
- ```
205
-
206
- @misc{kornilova2019billsum,
207
- title={BillSum: A Corpus for Automatic Summarization of US Legislation},
208
- author={Anastassia Kornilova and Vlad Eidelman},
209
- year={2019},
210
- eprint={1910.00523},
211
- archivePrefix={arXiv},
212
- primaryClass={cs.CL}
213
- }
214
-
215
- ```
216
-
217
-
218
- ### Contributions
219
-
220
- Thanks to [@thomwolf](https://github.com/thomwolf), [@jplu](https://github.com/jplu), [@lewtun](https://github.com/lewtun) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
billsum.py DELETED
@@ -1,108 +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
- """BillSum Dataset."""
18
-
19
-
20
- import json
21
- import os
22
-
23
- import datasets
24
-
25
-
26
- _CITATION = """
27
- @misc{kornilova2019billsum,
28
- title={BillSum: A Corpus for Automatic Summarization of US Legislation},
29
- author={Anastassia Kornilova and Vlad Eidelman},
30
- year={2019},
31
- eprint={1910.00523},
32
- archivePrefix={arXiv},
33
- primaryClass={cs.CL}
34
- }
35
- """
36
-
37
- _DESCRIPTION = """
38
- BillSum, summarization of US Congressional and California state bills.
39
-
40
- There are several features:
41
- - text: bill text.
42
- - summary: summary of the bills.
43
- - title: title of the bills.
44
- features for us bills. ca bills does not have.
45
- - text_len: number of chars in text.
46
- - sum_len: number of chars in summary.
47
- """
48
-
49
- _URL = "https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx"
50
-
51
- _LICENSE = "CC0"
52
-
53
- _DOCUMENT = "text"
54
- _SUMMARY = "summary"
55
-
56
-
57
- class Billsum(datasets.GeneratorBasedBuilder):
58
- """BillSum Dataset."""
59
-
60
- # 2.0.0 data source updated to filter near duplicates.
61
- # 3.0.0 none of the test examples are 'near duplicates' of an example in the
62
- # train set AND they dont have the same title, regardless of similarity.
63
- VERSION = datasets.Version("3.0.0")
64
-
65
- def _info(self):
66
- return datasets.DatasetInfo(
67
- description=_DESCRIPTION,
68
- license=_LICENSE,
69
- features=datasets.Features(
70
- {
71
- _DOCUMENT: datasets.Value("string"),
72
- _SUMMARY: datasets.Value("string"),
73
- "title": datasets.Value("string"),
74
- }
75
- ),
76
- supervised_keys=(_DOCUMENT, _SUMMARY),
77
- homepage="https://github.com/FiscalNote/BillSum",
78
- citation=_CITATION,
79
- )
80
-
81
- def _split_generators(self, dl_manager):
82
- """Returns SplitGenerators."""
83
- dl_path = dl_manager.download_and_extract(_URL)
84
- return [
85
- datasets.SplitGenerator(
86
- name=datasets.Split.TRAIN,
87
- gen_kwargs={"path": os.path.join(dl_path, "us_train_data_final_OFFICIAL.jsonl"), "key": "bill_id"},
88
- ),
89
- datasets.SplitGenerator(
90
- name=datasets.Split.TEST,
91
- gen_kwargs={"path": os.path.join(dl_path, "us_test_data_final_OFFICIAL.jsonl"), "key": "bill_id"},
92
- ),
93
- datasets.SplitGenerator(
94
- name="ca_test",
95
- gen_kwargs={"path": os.path.join(dl_path, "ca_test_data_final_OFFICIAL.jsonl"), "key": "external_id"},
96
- ),
97
- ]
98
-
99
- def _generate_examples(self, path=None, key=None):
100
- """Yields examples."""
101
- with open(path, encoding="utf-8") as f:
102
- for line in f:
103
- # in us bills, json has fields:
104
- # text, summary, title, bill_id, text_len, sum_len
105
- # in ca bills, json has fields:
106
- # text, summary, title, external_id
107
- d = json.loads(line)
108
- yield d[key], {k: d[k] for k in [_DOCUMENT, _SUMMARY, "title"]}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "\nBillSum, summarization of US Congressional and California state bills.\n\nThere are several features:\n - text: bill text.\n - summary: summary of the bills.\n - title: title of the bills.\nfeatures for us bills. ca bills does not have.\n - text_len: number of chars in text.\n - sum_len: number of chars in summary.\n", "citation": "\n@misc{kornilova2019billsum,\n title={BillSum: A Corpus for Automatic Summarization of US Legislation},\n author={Anastassia Kornilova and Vlad Eidelman},\n year={2019},\n eprint={1910.00523},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/FiscalNote/BillSum", "license": "CC0", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "summary": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "text", "output": "summary"}, "task_templates": null, "builder_name": "billsum", "config_name": "default", "version": {"version_str": "3.0.0", "description": null, "major": 3, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 219596090, "num_examples": 18949, "dataset_name": "billsum"}, "test": {"name": "test", "num_bytes": 37866257, "num_examples": 3269, "dataset_name": "billsum"}, "ca_test": {"name": "ca_test", "num_bytes": 14945291, "num_examples": 1237, "dataset_name": "billsum"}}, "download_checksums": {"https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx": {"num_bytes": 67260676, "checksum": "5a55dfb231618d63b25cec4773280a2986d38f53d6d4d39b8256b278edf1110c"}}, "download_size": 67260676, "post_processing_size": null, "dataset_size": 272407638, "size_in_bytes": 339668314}}
 
 
default/billsum-ca_test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d97d00e7738bde0c98f850c5ab3c1d54543ae14d06d32495a300f807f4f47668
3
+ size 6121190
default/billsum-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe4c75db9ba386d535ed4a748d9a29d77c4567c3137991c3ab5108c22e58fd1b
3
+ size 15797078
default/billsum-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ff61b3513e74b742ba906c178e7dd805c79f138aa5c6f3eca9900a66661a1f
3
+ size 91811111