πŸ“š DistilBERT News Classifier by Dheeraj

A text classification model fine-tuned on news headlines to classify them into one of four categories:

  • 0 β†’ Sports
  • 1 β†’ Business
  • 2 β†’ Tech
  • 3 β†’ Science

🧠 Model Info

This 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.

πŸš€ Example Usage

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)
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Dheeraj3103/distilbert-news-classifier-dheeraj

Finetuned
(9646)
this model