|
|
--- |
|
|
dataset_info: |
|
|
features: |
|
|
- name: messages |
|
|
list: |
|
|
- name: content |
|
|
dtype: string |
|
|
- name: role |
|
|
dtype: string |
|
|
splits: |
|
|
- name: train |
|
|
num_bytes: 57388561 |
|
|
num_examples: 31716 |
|
|
- name: test |
|
|
num_bytes: 3567957 |
|
|
num_examples: 2000 |
|
|
download_size: 30680634 |
|
|
dataset_size: 60956518 |
|
|
configs: |
|
|
- config_name: default |
|
|
data_files: |
|
|
- split: train |
|
|
path: data/train-* |
|
|
- split: test |
|
|
path: data/test-* |
|
|
--- |
|
|
|
|
|
This is a version of the Enron Spam Email Dataset, containing emails (subject + message) in a chat format. I used to it train a small model for email classification for an n8n automation. |
|
|
|
|
|
### The format |
|
|
{ |
|
|
"role": "system", |
|
|
"content": "You are an expert email classification assistant. Your sole purpose is to classify emails into one of two categories: 'Spam' or 'Not Spam'. Respond only with the category name and nothing else." |
|
|
}, |
|
|
{ |
|
|
"role": "user", |
|
|
"content": f"Please classify the following email:\n\n---\n\nEmail Body:\n\n{email_body}" |
|
|
}, |
|
|
{ |
|
|
"role": "assistant", |
|
|
"content": label_text |
|
|
} |