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
|
Download README.md from Pannuru/md-validator: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/Pannuru/md-validator/resolve/main/README.md
- Command line
-
hf download hf://Pannuru/md-validator/README.md
-
curl -L -o README.md https://huggingface.co/Pannuru/md-validator/resolve/main/README.md
830 Bytes
| 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. | |