Welcome to the Fake News Detector! This project is all about separating the truth from the lies in the world of news. Using powerful machine learning models, we're here to help you identify whether a news article is true or fake. Get ready to dive into the fascinating world of news classification! 🚀
- News Classification: Automatically classifies news articles as true or fake.
- Data Preprocessing: Cleans and prepares text data for machine learning.
- Model Training: Utilizes Logistic Regression and Decision Tree models.
- Manual Testing: Allows users to input news text and get predictions in real-time.
- Visualizations: Includes bar charts and pie charts for data insights.
- True.csv:("https://www.kaggle.com/datasets/emineyetm/fake-news-detection-datasets")
- Fake.csv:("https://www.kaggle.com/datasets/emineyetm/fake-news-detection-datasets")
Follow these steps to get your Fake News Detector up and running!
- Python 3.x
- Pandas
- NumPy
- Scikit-learn
- Matplotlib
-
Clone the repository:
git clone https://github.com/yourusername/fake-news-detector.git cd fake-news-detector
-
Install the required libraries:
pip install pandas numpy scikit-learn matplotlib
-
Download the dataset files:
- Place
True.csv
andFake.csv
in the project directory.
- Place
-
Execute the script:
python fake_news_detector.py
-
Manual Testing:
- After running the script, you can enter any news text to see if it's true or fake.
- Interactive Predictions: Enter your own news text and see the magic happen!
- Engaging Visuals: Enjoy bar charts and pie charts that make data insights fun.
fake_news_detector.py
: The main script containing all functionalities.True.csv
: Dataset of true news articles.Fake.csv
: Dataset of fake news articles.
Feel free to reach out if you have any questions or suggestions!
- Email: pradnya08062003@gmail.com
- GitHub: pradnya2003
- Thanks to the open-source community for providing the datasets and tools used in this project.
Happy news classifying! Stay informed and stay skeptical! 🚀📰