π 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)
Model tree for Dheeraj3103/distilbert-news-classifier-dheeraj
Base model
distilbert/distilbert-base-uncased