Downloads · 30 days
25
6% of all-time downloads
SoroushXYZ/distilbert-rss-ad-detection
distilbert-rss-ad-detection is a text classification model from SoroushXYZ. Use it when you need a label for a piece of text. The card lists the license as mit.
A DistilBERT-based model for classifying RSS article titles as advertisements or legitimate news content.
Downloads · 30 days
25
6% of all-time downloads
All-time downloads
394
Public
Parameters
67M
2.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt1.6 GB · 60%
From the Hugging Face model README
A DistilBERT-based model for classifying RSS article titles as advertisements or legitimate news content.
This model is fine-tuned from distilbert-base-uncased for binary text classification. It can distinguish between:
from transformers import pipeline
# Load the model
classifier = pipeline("text-classification",
model="SoroushXYZ/distilbert-rss-ad-detection")
# Classify examples
examples = [
"Apple Announces New iPhone with Advanced AI Features",
"50% OFF - Limited Time Offer on Premium Headphones!",
"Scientists Discover New Method for Carbon Capture",
"Buy Now! Get Free Shipping on All Electronics Today Only!"
]
for text in examples:
result = classifier(text)
print(f"{text} -> {result[0]['label']} ({result[0]['score']:.3f})")
If you use this model, please cite:
@misc{distilbert-rss-ad-detection,
title={DistilBERT RSS Advertisement Detection},
author={Your Name},
year={2024},
url={https://huggingface.co/SoroushXYZ/distilbert-rss-ad-detection}
}