Coder Social home page Coder Social logo

fake-news-detection_bert's Introduction

Fake news during the pandemic: detecting super spreaders user in social media

In this project, we developed a web application called “verifyit” which checks the authenticity of tweets using the BERT model and also allows us to detect the super-spreader through influence score. The application deals with two objectives: A. To detect fake news: Implement a fake news detection model using Bert and compare the performance with covid19 fake news dataset(Codalab) and Generalised fake news dataset(FakeNewsNet). B. To trace out the super-spreader of this fake news: In order to consider a user to be a super-spreader, the tweets are analysed and evaluated based on their impact score, and if half of their posts are fake, their influence score will be increased and they are considered to be a super-spreader.

Dataset

image

Model Evaluation

image

Libraries required to run the program:

please install using the following commands:

!pip install pandas
!pip install tf-models-nightly
!pip install tensorflow-text-nightly
!pip install tf-models-official==2.5.0
!pip install tensorflow-text==2.5.0
!pip install tweepy
!pip install tensorflow_hub
!pip install trafilatura

If you wish run this program on google colab,Changing the runtime type to GPU significantly improves the training time if you wish to train the model again.

Please change the file locations accordingly as per file location saved in your colab directory.

To access tweepy connection, please generate a twitter elevated developer access through the documentation provided below

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

Once access has been generated, replace the comment for the token variables provided in the notebook.

To access ngrok connection, please generate an auth token through the link provided below: https://ngrok.com/docs/secure-tunnels#tunnel-authtokens

Once token has been generated, replace the comment for the token variable provided in the Fake_News_Main notebook.

fake-news-detection_bert's People

Contributors

muradh2994 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.