https://github.com/sabin74/fake_news_detection
This project implements a Fake News Detection system using Python, Natural Language Processing (NLP), and machine learning. It classifies news articles as Real or Fake based on their textual content.
https://github.com/sabin74/fake_news_detection
fake-news-detection kaggle-dataset multinomial-naive-bayes passive-aggressive-classifier python3 regex scikit-learn
Last synced: 2 months ago
JSON representation
This project implements a Fake News Detection system using Python, Natural Language Processing (NLP), and machine learning. It classifies news articles as Real or Fake based on their textual content.
- Host: GitHub
- URL: https://github.com/sabin74/fake_news_detection
- Owner: sabin74
- Created: 2025-06-10T06:51:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-10T07:37:47.000Z (about 1 year ago)
- Last Synced: 2025-06-22T10:02:54.666Z (12 months ago)
- Topics: fake-news-detection, kaggle-dataset, multinomial-naive-bayes, passive-aggressive-classifier, python3, regex, scikit-learn
- Language: Jupyter Notebook
- Homepage: https://www.kaggle.com/datasets/clmentbisaillon/fake-and-real-news-dataset
- Size: 42.3 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fake News Detection
## Overview
This project implements a **Fake News Detection** system using Python, Natural Language Processing (NLP), and machine learning. It classifies news articles as **Real** or **Fake** based on their textual content.
The system uses:
- Text preprocessing and TF-IDF vectorization
- Two classification models:
- **Multinomial Naive Bayes** (for probability predictions)
- **Passive Aggressive Classifier** (for high accuracy)
## Features
- Clean and preprocess news text for NLP modeling
- Convert text to TF-IDF feature vectors
- Train and compare two models:
- Multinomial Naive Bayes
- Passive Aggressive Classifier
- Save and load trained models for offline use
- Predict batch news articles
- Output prediction probabilities with Passive Aggressive Classifier model
- Easy-to-use prediction function for real-time testing