Skip to content

Latest commit

Β 

History

History
26 lines (21 loc) Β· 1023 Bytes

File metadata and controls

26 lines (21 loc) Β· 1023 Bytes

πŸ“° Fake News Detection using DistilBERT

πŸš€ Binary Classification of Fake and Real News using Transformer Models

πŸ“Œ Project Overview

This project uses a DistilBERT transformer model to classify news articles as real or fake. The dataset is sourced from Kaggle and consists of labeled news articles. The model achieves high accuracy in detecting misinformation.


πŸ“‚ Dataset

  • Source: Fake and Real News Dataset
  • Structure:
    • True.csv β†’ Real news articles
    • Fake.csv β†’ Fake news articles
  • Preprocessing:
    • Combined title and text columns for better context.
    • Added labels (1 = Real, 0 = Fake).
    • Tokenized text using DistilBERT Tokenizer.

βš™οΈ Installation

Clone this repository and install dependencies:

git clone https://github.com/your_username/fake-news-detection.git
Open Powershell in windows and run:
pip install -r "path/to/requirements.txt"