Changed some dataset card phrasings for consistency.

#2
Files changed (1) hide show
  1. README.md +52 -26
README.md CHANGED
@@ -5,6 +5,11 @@ dataset_info:
5
  dtype: string
6
  - name: label
7
  dtype: string
 
 
 
 
 
8
  license: apache-2.0
9
  task_categories:
10
  - text-classification
@@ -20,22 +25,23 @@ source_datasets:
20
  language_creators:
21
  - found
22
  annotations_creators:
23
- - unknown
24
  size_categories:
25
  - 10K<n<100K
26
  ---
27
 
28
  # Dataset Card for Email Classification Dataset
29
 
30
- The Email Classification Dataset contains **10,900 English emails** published as a binary spam/not_spam dataset.
 
31
 
32
  ## Dataset Details
33
 
34
  ### Dataset Description
35
 
36
- This dataset contains 10,900 English emails for text classification tasks.
37
  The dataset is split into train (8,175 rows, 75%) and test (2,725 rows, 25%) splits. It
38
- contains two columns: `text` (full email body) and `label` (binary label [spam, not_spam]).
39
 
40
  - **Curated by:** FIB-UPC MDS students, see [Dataset Card Contact](#dataset-card-contact). Source data by [Deysi](https://huggingface.co/datasets/Deysi/spam-detection-dataset).
41
  - **Language(s) (NLP):** English
@@ -51,8 +57,8 @@ Due to the original dataset lacking a dataset card, the sources that originated
51
 
52
  ### Direct Use
53
 
54
- - **Binary Spam/Ham Email Classification:** Use the `label` column for traditional spam detection tasks.
55
- - **Raw Text for LLM Training:** The `text` column provides raw English email content suitable for language model pre-training or fine-tuning.
56
 
57
  ### Out-of-Scope Use
58
 
@@ -67,12 +73,12 @@ Each instance contains the following fields:
67
 
68
  | Field | Type | Description |
69
  |-------|------|-------------|
70
- | `text` | `string` | Full email body as plain text |
71
  | `label` | `string` | Binary label `spam` or `not_spam` |
72
 
73
  Example:
74
 
75
- ```python
76
  {
77
  "text": "Get rich quick! Make millions in just days with our new and revolutionary system! Don't miss out on this amazing opportunity!",
78
  "label": "spam"
@@ -87,13 +93,24 @@ Example:
87
  | `test` | 2,725 | 25% |
88
  | **Total** | **10,900** | **100%** |
89
 
 
 
 
 
 
 
 
 
 
 
 
90
  ## Dataset Creation
91
 
92
  ### Curation Rationale
93
 
94
- The dataset was originally published as a binary spam detection dataset without a dataset card.
95
- As part of the MLOPS course in the Master's in Data Science at FIB-UPC, a dataset card was created to
96
- document it properly.
97
 
98
  ### Source Data
99
 
@@ -104,7 +121,7 @@ containing 10,900 English emails with binary spam/not_spam labels.
104
 
105
  #### Who are the source data producers?
106
 
107
- The original binary data was sourced from Deysi and published on Hugging Face. Information from the original dataset's sources is not clear.
108
 
109
  ### Annotations
110
 
@@ -114,16 +131,16 @@ The annotation process for the binary labels is unknown.
114
 
115
  #### Who are the annotators?
116
 
117
- Unknown. Original method not documented.
118
 
119
- #### Personal and Sensitive Information
120
 
121
- Contains full email bodies. Anonymization not documented. Assume Personally Identifiable Information present, such as names and addresses.
122
- No PII audit was performed. Use with care. Do not try to identify individuals.
123
 
124
  ## Bias, Risks, and Limitations
125
 
126
- - **Synthetic spam style.** Original spam texts contain exaggerated, promotional language that may not reflect real-world phishing tactics. Models trained on this dataset may not generalize to real-life spam.
127
  - **Temporal drift.** Dataset likely reflects spam patterns from its original (and unknown) collection period. Current spam tactics may differ.
128
  - **English-only.** No multilingual coverage. Performance on non-English email is not tested and likely to be worse.
129
 
@@ -131,30 +148,39 @@ No PII audit was performed. Use with care. Do not try to identify individuals.
131
 
132
  Users should be made aware of the risks, biases, and limitations of the dataset. Specifically, users should:
133
 
134
- - Be cautious when applying models trained on this dataset to real-world spam detection, as the spam style may not generalize.
135
  - Be aware that temporal and linguistic biases may limit applicability to other contexts.
136
 
137
  ## Citation
138
 
139
  **BibTeX:**
140
 
141
- ```bibtex
142
- @dataset{email_classification_2026,
143
- author = {Carles Aguilera, Alex Bueno, Joel Delgado, Berta Torrents, Diego Velilla},
144
- title = {Email Classification Dataset},
145
- year = {2026},
146
  publisher = {Hugging Face},
147
- url = {https://huggingface.co/datasets/diegovelilla/email-classification-dataset}
148
  }
149
- ```
150
 
151
  **APA:**
152
 
153
  > Aguilera, C., Bueno, A., Delgado, J., Torrents, B., & Velilla, D. (2026). Email Classification Dataset. Hugging Face. https://huggingface.co/datasets/diegovelilla/email-classification-dataset
154
 
 
 
 
 
 
 
 
 
 
 
 
155
  ## Dataset Card Contact
156
 
157
- This project has been carried out by:
158
 
159
  - [Carles Aguilera](https://github.com/carles-aguilera-pilo)
160
  - [Alex Bueno](https://github.com/AlexBuenoL)
 
5
  dtype: string
6
  - name: label
7
  dtype: string
8
+ splits:
9
+ - name: train
10
+ num_examples: 8175
11
+ - name: test
12
+ num_examples: 2725
13
  license: apache-2.0
14
  task_categories:
15
  - text-classification
 
25
  language_creators:
26
  - found
27
  annotations_creators:
28
+ - found
29
  size_categories:
30
  - 10K<n<100K
31
  ---
32
 
33
  # Dataset Card for Email Classification Dataset
34
 
35
+ The Email Classification Dataset contains **10,900 English texts** labelled as `spam` or `not_spam`.
36
+ It is used as training and evaluation data for the spam detection component of the MLOps course project at FIB-UPC.
37
 
38
  ## Dataset Details
39
 
40
  ### Dataset Description
41
 
42
+ This dataset contains 10,900 English messages for text classification tasks.
43
  The dataset is split into train (8,175 rows, 75%) and test (2,725 rows, 25%) splits. It
44
+ contains two columns: `text` (full message content) and `label` (binary label [spam, not_spam]).
45
 
46
  - **Curated by:** FIB-UPC MDS students, see [Dataset Card Contact](#dataset-card-contact). Source data by [Deysi](https://huggingface.co/datasets/Deysi/spam-detection-dataset).
47
  - **Language(s) (NLP):** English
 
57
 
58
  ### Direct Use
59
 
60
+ - **Binary spam classification:** The `label` column supports training and evaluating models that distinguish spam from legitimate (ham) messages.
61
+ - **Raw Text for LLM Training:** The `text` column provides raw English messages content suitable for language model pre-training or fine-tuning.
62
 
63
  ### Out-of-Scope Use
64
 
 
73
 
74
  | Field | Type | Description |
75
  |-------|------|-------------|
76
+ | `text` | `string` | Full message text |
77
  | `label` | `string` | Binary label `spam` or `not_spam` |
78
 
79
  Example:
80
 
81
+ ```json
82
  {
83
  "text": "Get rich quick! Make millions in just days with our new and revolutionary system! Don't miss out on this amazing opportunity!",
84
  "label": "spam"
 
93
  | `test` | 2,725 | 25% |
94
  | **Total** | **10,900** | **100%** |
95
 
96
+ The split was inherited unchanged from the source dataset.
97
+
98
+ ### Label Distribution
99
+
100
+ | Label | Train | Test | Total |
101
+ |-------|-------|------|-------|
102
+ | `spam` | TODO | TODO | TODO |
103
+ | `not_spam` | TODO | TODO | TODO |
104
+
105
+ Text length ranges from TODO to approximately TODO characters.
106
+
107
  ## Dataset Creation
108
 
109
  ### Curation Rationale
110
 
111
+ The dataset was selected to train the spam detection component of the MLOps course project in the Master in Data Science at FIB-UPC.
112
+ It provides binary spam labels in English with a predefined train and test split. The source dataset was published without documentation.
113
+ It was therefore republished under the team's account with a dataset card that documents its content, limitations and intended use within the project.
114
 
115
  ### Source Data
116
 
 
121
 
122
  #### Who are the source data producers?
123
 
124
+ The source dataset was published on Hugging Face by the user Deysi. Its dataset card provides no information about the origin of the data.
125
 
126
  ### Annotations
127
 
 
131
 
132
  #### Who are the annotators?
133
 
134
+ The annotators of the binary labels are not documented in the source dataset.
135
 
136
+ ### Personal and Sensitive Information
137
 
138
+ Anonymization not documented in the original dataset. However, the `not_spam` instances seem to be public forum posts. Some of them contain URLs, organisation names and details that authors disclosed about themselves, such as their employer or field of study.
139
+ The `spam` instances appear to be synthetic and are not expected to contain real personal data. No anonymisation or PII audit was performed on the texts.
140
 
141
  ## Bias, Risks, and Limitations
142
 
143
+ - **Synthetic spam style.** Spam texts contain exaggerated, promotional language that may not reflect real-world phishing tactics. Models trained on this dataset may not generalize to real-life spam.
144
  - **Temporal drift.** Dataset likely reflects spam patterns from its original (and unknown) collection period. Current spam tactics may differ.
145
  - **English-only.** No multilingual coverage. Performance on non-English email is not tested and likely to be worse.
146
 
 
148
 
149
  Users should be made aware of the risks, biases, and limitations of the dataset. Specifically, users should:
150
 
151
+ - Validate models trained on this dataset on real email data before using them for email filtering, as neither the domain nor the spam style may generalize.
152
  - Be aware that temporal and linguistic biases may limit applicability to other contexts.
153
 
154
  ## Citation
155
 
156
  **BibTeX:**
157
 
158
+ @misc{email_classification_2026,
159
+ author = {Aguilera, Carles and Bueno, Alex and Delgado, Joel and Torrents, Berta and Velilla, Diego},
160
+ title = {Email Classification Dataset},
161
+ year = {2026},
 
162
  publisher = {Hugging Face},
163
+ url = {https://huggingface.co/datasets/diegovelilla/email-classification-dataset}
164
  }
 
165
 
166
  **APA:**
167
 
168
  > Aguilera, C., Bueno, A., Delgado, J., Torrents, B., & Velilla, D. (2026). Email Classification Dataset. Hugging Face. https://huggingface.co/datasets/diegovelilla/email-classification-dataset
169
 
170
+ Users of this dataset should also acknowledge the source dataset, [Deysi/spam-detection-dataset](https://huggingface.co/datasets/Deysi/spam-detection-dataset).
171
+
172
+ ## Glossary
173
+
174
+ - **Spam:** Unsolicited message, usually with promotional or fraudulent intent.
175
+ - **Ham:** Legitimate message that is not spam. It corresponds to the `not_spam` label.
176
+
177
+ ## More Information
178
+
179
+ The code and documentation of the project are available in the team's repository, https://github.com/mlops-2627q1-mds-upc/MLOps-Datatouille.git
180
+
181
  ## Dataset Card Contact
182
 
183
+ Questions about the dataset can be addressed to TODO. The project was carried out by the following team members.
184
 
185
  - [Carles Aguilera](https://github.com/carles-aguilera-pilo)
186
  - [Alex Bueno](https://github.com/AlexBuenoL)