https://github.com/manicdon7/fakenews-detection-ai
This project aims to address this challenge by creating a Fake News Detection Model using a Kaggle dataset.
https://github.com/manicdon7/fakenews-detection-ai
Last synced: 2 months ago
JSON representation
This project aims to address this challenge by creating a Fake News Detection Model using a Kaggle dataset.
- Host: GitHub
- URL: https://github.com/manicdon7/fakenews-detection-ai
- Owner: manicdon7
- License: mit
- Created: 2023-09-30T05:37:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T04:17:00.000Z (over 1 year ago)
- Last Synced: 2025-02-15T21:46:28.358Z (4 months ago)
- Language: Python
- Size: 39.8 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fake News Detection Model
## Overview
The Fake News Detection Model is designed to classify news articles as either "real" or "fake" based on their textual content and additional features. This model can be used to identify potentially misleading or false information in news articles.## Features
- Text Preprocessing: The model performs text preprocessing steps, including lowercasing and stopword removal.
- Sentiment Analysis: It uses VADER SentimentIntensityAnalyzer to analyze the sentiment of the article's text.
- Additional Feature: The model also considers the length of the text as an additional feature.## Requirements
- Python 3
- Required Python libraries mentioned in the code## Usage
1. Clone this repository:```bash
git clone
cd fake-news-detection-modelInstall the required Python libraries:
pip install -r requirements.txt
Run the model:
python fake_news_detector.py
Example
Consider the following example sentences:True News Sentence:
"Scientists have discovered a new species of butterfly in the Amazon rainforest."Fake News Sentence:
"Aliens have landed in New York City and are controlling our minds with their advanced technology."Running the model with these sentences will classify the first as "real" and the second as "fake."
Note
This model is a simplified example and may not be suitable for production use. Further fine-tuning and extensive data are required for a robust solution.
The model is designed for classification and may not verify the recency of news articles. Additional checks are needed for real-time news validation.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.