Daily Mirror News Classifier

This model is a fine-tuned version of distilbert-base-uncased on a custom dataset of Sri Lankan news from the Daily Mirror.

Training Results (Peak Performance)

The model was trained for 5 epochs. The following metrics represent the best-performing version (Epoch 4), which achieved a high level of accuracy and balance.

  • Accuracy: 90.15%
  • F1-Score (Weighted): 90.23%
  • Precision (Weighted): 90.37%
  • Recall (Weighted): 90.15%

Classification Categories

The model is configured to classify news articles into the following 5 labels:

  1. Business
  2. Opinion
  3. Political gossip
  4. Sports
  5. World news

How to Use?

You can use this model directly with the Hugging Face pipeline:

from transformers import pipeline

classifier = pipeline("text-classification", model="Senujide/news_classifier")
text = "The national team won the match in the final over."
print(classifier(text))
Downloads last month
15
Safetensors
Model size
67M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using Senujide/news_classifier 3