This is a machine Learning model on news prediction with complete interface of web (Using Flask)
Table of Contents
This project leverages logistic regression, a powerful machine learning algorithm, to predict the authenticity of news articles—whether they are genuine or fake. Through the integration of Natural Language Processing (NLP) techniques, including the NLTK library, the model analyzes textual data to discern patterns and features indicative of misinformation.
- Logistic Regression Model: The core of this project utilizes logistic regression, a binary classification algorithm well-suited for discerning between real and fake news based on given features.
- NLP and NLTK Integration: Natural Language Processing is employed to extract meaningful insights from textual content. The NLTK library, a comprehensive toolkit for NLP tasks, enhances the model's understanding of language nuances.
- Accuracy and Reliability: The model is trained on a labeled dataset, honing its ability to make accurate predictions. Rigorous testing ensures the reliability of the predictions, making it a valuable tool for identifying misinformation.
Clone the repository: git clone https://github.com/2003vivek/NewsGuardian.git
Install dependencies: pip install -r requirements.txt
Run the prediction script: python predict_fake_news.py
- Scikit-learn library
pip install sklearn
- Flask
pip install flask
- nltk
pip install nltk
Distributed under the MIT License. See LICENSE
for more information.