Pannuru commited on
Commit
c40bc9f
·
verified ·
1 Parent(s): 8a8cb83

Add Hugging Face model metadata

Browse files
Files changed (1) hide show
  1. README.md +24 -34
README.md CHANGED
@@ -1,55 +1,45 @@
 
 
 
 
 
 
 
 
 
1
 
2
  # Spam Email Detection Using DistilBERT
3
 
4
  ## Project Overview
5
- This project uses DistilBERT, a transformer-based language
6
- model, to classify emails as Spam or Ham.
7
-
8
- ## Objectives
9
- - Detect spam and legitimate emails.
10
- - Classify email messages automatically.
11
- - Identify suspicious words and phrases.
12
- - Provide explanations for potential spam indicators.
13
 
14
  ## Dataset
15
- Dataset: SetFit/enron_spam
16
 
17
  - Training samples: 8,000
18
  - Testing samples: 2,000
19
  - Spam label: 1
20
  - Ham label: 0
21
 
22
- ## Technology Used
23
  - Python
24
- - Google Colab
25
  - Hugging Face Transformers
 
26
  - DistilBERT
27
- - PyTorch
28
- - Scikit-learn
29
-
30
- ## Methodology
31
- 1. Dataset loading
32
- 2. Data preparation
33
- 3. Tokenization
34
- 4. DistilBERT fine-tuning
35
- 5. Model evaluation
36
- 6. Spam and Ham prediction
37
- 7. Spam indicator explanation
38
-
39
- ## Model
40
- Architecture: DistilBERT
41
- Maximum sequence length: 128
42
- Training epochs: 2
43
 
44
  ## Example
45
  Input: Congratulations! You won a free prize.
46
 
47
  Prediction: SPAM
48
 
49
- ## Limitations
50
- The explanation feature identifies predefined suspicious
51
- phrases. These phrases are indicators, not proof of spam
52
- or a complete explanation of the model's decision.
53
-
54
- ## Model Repository
55
- https://huggingface.co/Pannuru/spam-mail-detection
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: text-classification
4
+ tags:
5
+ - distilbert
6
+ - spam-detection
7
+ - email-classification
8
+ - text-classification
9
+ ---
10
 
11
  # Spam Email Detection Using DistilBERT
12
 
13
  ## Project Overview
14
+ A DistilBERT-based model that classifies email messages as Spam or Ham.
 
 
 
 
 
 
 
15
 
16
  ## Dataset
17
+ SetFit/enron_spam
18
 
19
  - Training samples: 8,000
20
  - Testing samples: 2,000
21
  - Spam label: 1
22
  - Ham label: 0
23
 
24
+ ## Technologies
25
  - Python
26
+ - PyTorch
27
  - Hugging Face Transformers
28
+ - Google Colab
29
  - DistilBERT
30
+
31
+ ## Workflow
32
+ 1. Dataset preparation
33
+ 2. Tokenization
34
+ 3. Model training
35
+ 4. Model evaluation
36
+ 5. Spam and Ham prediction
37
+ 6. Spam indicator explanation
 
 
 
 
 
 
 
 
38
 
39
  ## Example
40
  Input: Congratulations! You won a free prize.
41
 
42
  Prediction: SPAM
43
 
44
+ ## Limitation
45
+ Spam explanations use predefined keyword indicators and do not establish the model's causal reasoning.