File size: 830 Bytes
c40bc9f
 
 
 
 
 
 
 
 
8a8cb83
 
 
 
c40bc9f
8a8cb83
 
c40bc9f
8a8cb83
 
 
 
 
 
c40bc9f
8a8cb83
c40bc9f
8a8cb83
c40bc9f
8a8cb83
c40bc9f
 
 
 
 
 
 
 
8a8cb83
 
 
 
 
 
c40bc9f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
library_name: transformers
pipeline_tag: text-classification
tags:
- distilbert
- spam-detection
- email-classification
- text-classification
---

# Spam Email Detection Using DistilBERT

## Project Overview
A DistilBERT-based model that classifies email messages as Spam or Ham.

## Dataset
SetFit/enron_spam

- Training samples: 8,000
- Testing samples: 2,000
- Spam label: 1
- Ham label: 0

## Technologies
- Python
- PyTorch
- Hugging Face Transformers
- Google Colab
- DistilBERT

## Workflow
1. Dataset preparation
2. Tokenization
3. Model training
4. Model evaluation
5. Spam and Ham prediction
6. Spam indicator explanation

## Example
Input: Congratulations! You won a free prize.

Prediction: SPAM

## Limitation
Spam explanations use predefined keyword indicators and do not establish the model's causal reasoning.