Downloads · 30 days
0
Dheeraj3103/distilbert-news-classifier-dheeraj
distilbert-news-classifier-dheeraj is a text classification model from Dheeraj3103. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
A text classification model fine-tuned on news headlines to classify them into one of four categories:
Downloads · 30 days
0
Access
Public
Updated Jun 21, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json713 KB · 75%
From the Hugging Face model README
A text classification model fine-tuned on news headlines to classify them into one of four categories:
0 → Sports1 → Business2 → Tech3 → ScienceThis model is built using DistilBERT and fine-tuned using Hugging Face's Trainer API.
It is trained on a small dataset of sample headlines, inspired by AG News, for demonstration and educational purposes.
from transformers import pipeline
classifier = pipeline("text-classification", model="Dheeraj3103/distilbert-news-classifier-dheeraj")
result = classifier("NASA finds evidence of water on Mars.")
print(result)