- A Machine Learning based web application that detects whether a news article is Fake or Real using NLP (Natural Language Processing).
-
This project uses Text Processing + Machine Learning to classify news articles.
-
The model is trained on real and fake news datasets and deployed using Streamlit for real-time prediction.
- Python
- Pandas
- NumPy
- Scikit-learn
- NLP (Natural Language Processing)
- TF-IDF Vectorizer
- Logistic Regression
- Streamlit
- Joblib
- Logistic Regression
- Fake & True News Dataset
- Classification
- 0 → Fake News
- 1 → Real News
- Combined fake and real datasets
- Created class labels
- Removed unnecessary columns
- Cleaned text (lowercase, remove links, punctuation, numbers)
- Converted text into numerical format using TF-IDF Vectorizer
- Split data into train and test sets
- Applied Logistic Regression
- Trained model on text data
- Accuracy Score
- Classification Report
- Model achieved good accuracy
- Logistic Regression performed well for text classification
- Model and vectorizer saved using Joblib
- Integrated into Streamlit Web App
- Enter any news article
- Click Check News
- Get result (Fake or Real) instantly
- pip install -r requirements.txt
- streamlit run fake_news.py
- Try advanced models (Naive Bayes, LSTM, BERT)
- Improve UI design
- Add confidence score

