Datasets:
Tasks:
Summarization
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
aspect-based-summarization
conversations-summarization
multi-document-summarization
email-headline-generation
License:
parquet-converter
commited on
Commit
·
a73c9cc
1
Parent(s):
b42a799
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -204
- aeslc.py +0 -106
- dataset_infos.json +0 -1
- default/aeslc-test.parquet +3 -0
- default/aeslc-train.parquet +3 -0
- default/aeslc-validation.parquet +3 -0
.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,204 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- crowdsourced
|
4 |
-
language:
|
5 |
-
- en
|
6 |
-
language_creators:
|
7 |
-
- found
|
8 |
-
license:
|
9 |
-
- unknown
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
pretty_name: 'AESLC: Annotated Enron Subject Line Corpus'
|
13 |
-
size_categories:
|
14 |
-
- 10K<n<100K
|
15 |
-
source_datasets:
|
16 |
-
- original
|
17 |
-
task_categories:
|
18 |
-
- summarization
|
19 |
-
task_ids: []
|
20 |
-
paperswithcode_id: aeslc
|
21 |
-
tags:
|
22 |
-
- aspect-based-summarization
|
23 |
-
- conversations-summarization
|
24 |
-
- multi-document-summarization
|
25 |
-
- email-headline-generation
|
26 |
-
dataset_info:
|
27 |
-
features:
|
28 |
-
- name: email_body
|
29 |
-
dtype: string
|
30 |
-
- name: subject_line
|
31 |
-
dtype: string
|
32 |
-
splits:
|
33 |
-
- name: train
|
34 |
-
num_bytes: 11902668
|
35 |
-
num_examples: 14436
|
36 |
-
- name: validation
|
37 |
-
num_bytes: 1660730
|
38 |
-
num_examples: 1960
|
39 |
-
- name: test
|
40 |
-
num_bytes: 1384177
|
41 |
-
num_examples: 1906
|
42 |
-
download_size: 11643743
|
43 |
-
dataset_size: 14947575
|
44 |
-
---
|
45 |
-
|
46 |
-
# Dataset Card for "aeslc"
|
47 |
-
|
48 |
-
## Table of Contents
|
49 |
-
- [Dataset Description](#dataset-description)
|
50 |
-
- [Dataset Summary](#dataset-summary)
|
51 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
52 |
-
- [Languages](#languages)
|
53 |
-
- [Dataset Structure](#dataset-structure)
|
54 |
-
- [Data Instances](#data-instances)
|
55 |
-
- [Data Fields](#data-fields)
|
56 |
-
- [Data Splits](#data-splits)
|
57 |
-
- [Dataset Creation](#dataset-creation)
|
58 |
-
- [Curation Rationale](#curation-rationale)
|
59 |
-
- [Source Data](#source-data)
|
60 |
-
- [Annotations](#annotations)
|
61 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
62 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
63 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
64 |
-
- [Discussion of Biases](#discussion-of-biases)
|
65 |
-
- [Other Known Limitations](#other-known-limitations)
|
66 |
-
- [Additional Information](#additional-information)
|
67 |
-
- [Dataset Curators](#dataset-curators)
|
68 |
-
- [Licensing Information](#licensing-information)
|
69 |
-
- [Citation Information](#citation-information)
|
70 |
-
- [Contributions](#contributions)
|
71 |
-
|
72 |
-
## Dataset Description
|
73 |
-
|
74 |
-
- **Homepage:**
|
75 |
-
- **Repository:** https://github.com/ryanzhumich/AESLC
|
76 |
-
- **Paper:** [This Email Could Save Your Life: Introducing the Task of Email Subject Line Generation](https://arxiv.org/abs/1906.03497)
|
77 |
-
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
78 |
-
- **Size of downloaded dataset files:** 11.10 MB
|
79 |
-
- **Size of the generated dataset:** 14.26 MB
|
80 |
-
- **Total amount of disk used:** 25.36 MB
|
81 |
-
|
82 |
-
### Dataset Summary
|
83 |
-
|
84 |
-
A collection of email messages of employees in the Enron Corporation.
|
85 |
-
|
86 |
-
There are two features:
|
87 |
-
- email_body: email body text.
|
88 |
-
- subject_line: email subject text.
|
89 |
-
|
90 |
-
### Supported Tasks and Leaderboards
|
91 |
-
|
92 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
93 |
-
|
94 |
-
### Languages
|
95 |
-
|
96 |
-
Monolingual English (mainly en-US) with some exceptions.
|
97 |
-
|
98 |
-
## Dataset Structure
|
99 |
-
|
100 |
-
### Data Instances
|
101 |
-
|
102 |
-
#### default
|
103 |
-
|
104 |
-
- **Size of downloaded dataset files:** 11.10 MB
|
105 |
-
- **Size of the generated dataset:** 14.26 MB
|
106 |
-
- **Total amount of disk used:** 25.36 MB
|
107 |
-
|
108 |
-
An example of 'train' looks as follows.
|
109 |
-
```
|
110 |
-
{
|
111 |
-
"email_body": "B/C\n<<some doc>>\n",
|
112 |
-
"subject_line": "Service Agreement"
|
113 |
-
}
|
114 |
-
```
|
115 |
-
|
116 |
-
### Data Fields
|
117 |
-
|
118 |
-
The data fields are the same among all splits.
|
119 |
-
|
120 |
-
#### default
|
121 |
-
- `email_body`: a `string` feature.
|
122 |
-
- `subject_line`: a `string` feature.
|
123 |
-
|
124 |
-
### Data Splits
|
125 |
-
|
126 |
-
| name |train|validation|test|
|
127 |
-
|-------|----:|---------:|---:|
|
128 |
-
|default|14436| 1960|1906|
|
129 |
-
|
130 |
-
## Dataset Creation
|
131 |
-
|
132 |
-
### Curation Rationale
|
133 |
-
|
134 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
135 |
-
|
136 |
-
### Source Data
|
137 |
-
|
138 |
-
#### Initial Data Collection and Normalization
|
139 |
-
|
140 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
141 |
-
|
142 |
-
#### Who are the source language producers?
|
143 |
-
|
144 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
145 |
-
|
146 |
-
### Annotations
|
147 |
-
|
148 |
-
#### Annotation process
|
149 |
-
|
150 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
151 |
-
|
152 |
-
#### Who are the annotators?
|
153 |
-
|
154 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
155 |
-
|
156 |
-
### Personal and Sensitive Information
|
157 |
-
|
158 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
159 |
-
|
160 |
-
## Considerations for Using the Data
|
161 |
-
|
162 |
-
### Social Impact of Dataset
|
163 |
-
|
164 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
165 |
-
|
166 |
-
### Discussion of Biases
|
167 |
-
|
168 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
169 |
-
|
170 |
-
### Other Known Limitations
|
171 |
-
|
172 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
173 |
-
|
174 |
-
## Additional Information
|
175 |
-
|
176 |
-
### Dataset Curators
|
177 |
-
|
178 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
179 |
-
|
180 |
-
### Licensing Information
|
181 |
-
|
182 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
183 |
-
|
184 |
-
### Citation Information
|
185 |
-
|
186 |
-
```
|
187 |
-
@inproceedings{zhang-tetreault-2019-email,
|
188 |
-
title = "This Email Could Save Your Life: Introducing the Task of Email Subject Line Generation",
|
189 |
-
author = "Zhang, Rui and
|
190 |
-
Tetreault, Joel",
|
191 |
-
booktitle = "Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics",
|
192 |
-
month = jul,
|
193 |
-
year = "2019",
|
194 |
-
address = "Florence, Italy",
|
195 |
-
publisher = "Association for Computational Linguistics",
|
196 |
-
url = "https://aclanthology.org/P19-1043",
|
197 |
-
doi = "10.18653/v1/P19-1043",
|
198 |
-
pages = "446--456",
|
199 |
-
}
|
200 |
-
```
|
201 |
-
|
202 |
-
### Contributions
|
203 |
-
|
204 |
-
Thanks to [@patrickvonplaten](https://github.com/patrickvonplaten), [@thomwolf](https://github.com/thomwolf), [@lewtun](https://github.com/lewtun) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
aeslc.py
DELETED
@@ -1,106 +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 |
-
"""Annotated Enron Subject Line Corpus Dataset."""
|
18 |
-
|
19 |
-
|
20 |
-
import glob
|
21 |
-
import os
|
22 |
-
|
23 |
-
import datasets
|
24 |
-
|
25 |
-
|
26 |
-
_CITATION = """
|
27 |
-
@misc{zhang2019email,
|
28 |
-
title={This Email Could Save Your Life: Introducing the Task of Email Subject Line Generation},
|
29 |
-
author={Rui Zhang and Joel Tetreault},
|
30 |
-
year={2019},
|
31 |
-
eprint={1906.03497},
|
32 |
-
archivePrefix={arXiv},
|
33 |
-
primaryClass={cs.CL}
|
34 |
-
}
|
35 |
-
"""
|
36 |
-
|
37 |
-
_DESCRIPTION = """
|
38 |
-
A collection of email messages of employees in the Enron Corporation.
|
39 |
-
|
40 |
-
There are two features:
|
41 |
-
- email_body: email body text.
|
42 |
-
- subject_line: email subject text.
|
43 |
-
"""
|
44 |
-
|
45 |
-
_URL = "https://github.com/ryanzhumich/AESLC/archive/master.zip"
|
46 |
-
|
47 |
-
_DOCUMENT = "email_body"
|
48 |
-
_SUMMARY = "subject_line"
|
49 |
-
|
50 |
-
|
51 |
-
class Aeslc(datasets.GeneratorBasedBuilder):
|
52 |
-
"""Annotated Enron Subject Line Corpus Dataset."""
|
53 |
-
|
54 |
-
VERSION = datasets.Version("1.0.0")
|
55 |
-
|
56 |
-
def _info(self):
|
57 |
-
return datasets.DatasetInfo(
|
58 |
-
description=_DESCRIPTION,
|
59 |
-
features=datasets.Features({_DOCUMENT: datasets.Value("string"), _SUMMARY: datasets.Value("string")}),
|
60 |
-
supervised_keys=(_DOCUMENT, _SUMMARY),
|
61 |
-
homepage="https://github.com/ryanzhumich/AESLC",
|
62 |
-
citation=_CITATION,
|
63 |
-
)
|
64 |
-
|
65 |
-
def _split_generators(self, dl_manager):
|
66 |
-
"""Returns SplitGenerators."""
|
67 |
-
dl_path = dl_manager.download_and_extract(_URL)
|
68 |
-
input_path = os.path.join(dl_path, "AESLC-master", "enron_subject_line")
|
69 |
-
return [
|
70 |
-
datasets.SplitGenerator(
|
71 |
-
name=datasets.Split.TRAIN,
|
72 |
-
gen_kwargs={"pattern": os.path.join(input_path, "train", "*.subject")},
|
73 |
-
),
|
74 |
-
datasets.SplitGenerator(
|
75 |
-
name=datasets.Split.VALIDATION,
|
76 |
-
gen_kwargs={"pattern": os.path.join(input_path, "dev", "*.subject")},
|
77 |
-
),
|
78 |
-
datasets.SplitGenerator(
|
79 |
-
name=datasets.Split.TEST,
|
80 |
-
gen_kwargs={"pattern": os.path.join(input_path, "test", "*.subject")},
|
81 |
-
),
|
82 |
-
]
|
83 |
-
|
84 |
-
def _generate_examples(self, pattern=None):
|
85 |
-
"""Yields examples."""
|
86 |
-
for filename in sorted(glob.glob(pattern)):
|
87 |
-
email_body, subject_line = _parse_email_file(filename)
|
88 |
-
key = os.path.basename(filename).rstrip(".subject")
|
89 |
-
yield key, {_DOCUMENT: email_body, _SUMMARY: subject_line}
|
90 |
-
|
91 |
-
|
92 |
-
def _parse_email_file(filename):
|
93 |
-
"""Parse email file text for email body and subject."""
|
94 |
-
with open(filename, encoding="utf-8") as f:
|
95 |
-
email_body = ""
|
96 |
-
for line in f:
|
97 |
-
if line == "\n":
|
98 |
-
break
|
99 |
-
email_body += line
|
100 |
-
line = next(f)
|
101 |
-
subject = ""
|
102 |
-
for line in f:
|
103 |
-
if line == "\n":
|
104 |
-
break
|
105 |
-
subject += line
|
106 |
-
return email_body, subject
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "\nA collection of email messages of employees in the Enron Corporation.\n\nThere are two features:\n - email_body: email body text.\n - subject_line: email subject text.\n", "citation": "\n@misc{zhang2019email,\n title={This Email Could Save Your Life: Introducing the Task of Email Subject Line Generation},\n author={Rui Zhang and Joel Tetreault},\n year={2019},\n eprint={1906.03497},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/ryanzhumich/AESLC", "license": "", "features": {"email_body": {"dtype": "string", "id": null, "_type": "Value"}, "subject_line": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": {"input": "email_body", "output": "subject_line"}, "builder_name": "aeslc", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1384177, "num_examples": 1906, "dataset_name": "aeslc"}, "train": {"name": "train", "num_bytes": 11902668, "num_examples": 14436, "dataset_name": "aeslc"}, "validation": {"name": "validation", "num_bytes": 1660730, "num_examples": 1960, "dataset_name": "aeslc"}}, "download_checksums": {"https://github.com/ryanzhumich/AESLC/archive/master.zip": {"num_bytes": 11643743, "checksum": "b5ea2ffb837c5cfb9b033d62b3940a8a2330a9eb69bd2a39a9f55db6a23a40a4"}}, "download_size": 11643743, "dataset_size": 14947575, "size_in_bytes": 26591318}}
|
|
|
|
default/aeslc-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:744375eea8f637edaef74d17885dcc1c5d1816342ce9916566ee94acb0d402c4
|
3 |
+
size 793540
|
default/aeslc-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a27ee0c3f9af80c0b07cca24f6aed2fb92cb2a924b15ff48ec7cd0e15172191
|
3 |
+
size 6258273
|
default/aeslc-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1e13f4c905d695b1d05c86f408e2c4ed7345a6bf24dad8dfac76600ca56f01c
|
3 |
+
size 896204
|