CoolFace
Modelpublic

anshy047/fake-news-detector-transformer

sourceHugging Facemitupdated 6mo agoView on Hugging Face
1likes19downloads
Model Card

๐Ÿง  Fake News Detection using Transformer

This model is a fine-tuned DistilBERT model designed to classify news articles as FAKE or REAL.


๐Ÿš€ Model Overview

  • โ€”Base Model: distilbert-base-uncased
  • โ€”Task: Text Classification
  • โ€”Labels: FAKE, REAL
  • โ€”Architecture: Transformer-based (DistilBERT)

๐Ÿ“Š Performance

  • โ€”Accuracy: ~98%
  • โ€”F1 Score: ~0.98

๐Ÿ“‚ Dataset

Trained on a combined dataset including:

  • โ€”Fake news datasets
  • โ€”Real news datasets
  • โ€”Cleaned and preprocessed text corpus

๐Ÿง  How It Works

The model analyzes:

  • โ€”Semantic meaning of text
  • โ€”Contextual relationships
  • โ€”Writing patterns

โšก Usage

python
from transformers import pipeline

classifier = pipeline("text-classification", model="your-username/your-model")

classifier("Breaking news: Scientists discover new planet")