Text Classification
Transformers
Safetensors
distilbert
spam-detection
email-classification
text-embeddings-inference
Instructions to use Pannuru/md-validator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pannuru/md-validator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Pannuru/md-validator")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Pannuru/md-validator") model = AutoModelForSequenceClassification.from_pretrained("Pannuru/md-validator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
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.
|