Giter Club home page Giter Club logo

fake-news-detection-project's Introduction

Fake-News-Detection-project

This repository contains code for a Fake News Detection project. The project uses machine learning techniques to analyze news articles and classify them as either real or fake.

Fake News Detection With 99% Accuracy:

Objectives

To build a model that will be able to determine if an article is fake news or not.

Data Understanding

The data was obtained from kaggle Fake and real news dataset. There are two sets of data, both saved in CSV format. One dataset contains real news, while the other dataset contains false news.

Data Preparation

In this section, i am going to do the following tasks using Python and NLP libraries:

Check for duplicate values in the data and remove them if any are found. Combine two datasets into one. Dropping columns not to be used. Remove all punctuations. Convert all the text to lower case. Create a word cloud. Remove stopwords from the combined dataset. Lemmatize the text data. Split the data into training and testing set. Tokenize the text data.

python -m spacy download en_core_web_sm

if we not install --error will come- so the 'en_core_web_sm' model is not installed in your spaCy library.

###You can try installing it by running the following command in your terminal or Anaconda prompt: python -m spacy download en_core_web_sm

Conclusion

In conclusion, the model is highly accurate and performs very well on the data it was trained and tested on. It can predict outcomes with 99% accuracy and has high recall and precision scores, indicating its ability to identify relevant results and minimize incorrect results.

fake-news-detection-project's People

Contributors

chithu123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.