Skip to content

akhileshnirna/FakeNewsDetectionApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Fake News Detection Application

This is a part of the final semester engineering project at PES University.

Abstract

Given news content in the form of text, image or url, the project aims to verify the credibility of the information through the use of different metrics like:

  1. Fake Image Detection
  2. Fake Website Detection
  3. Comparing with Credible Sources
  4. Stance Detection
  5. Community Detection

Deliverables

The project aims to deliver a web application to interact with users. Along with this, the features of the project will also be exposed in the form of a REST API for developers to leverage the metrics and help fight against the spread of fake news

Setup Instructions

cd code
python3 -m virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
python -m spacy download en

Add Heavy Files

Add the heavy files mentioned below to the respective folders before trying to execute the API/web server

  1. glove100d.hdf5 -> code/ml/models/
  2. data_dump_glove.data -> code/ml/data/

Dependencies

  1. Event Registry API
  2. PyTextRank

Library Bug Fixes

To ensure PyTextrank works as expected, follow this link to make necessary changes in your installation or use the virtualenv in this repository

Execution Instructions

Run the below commands to execute both the API and website

# runs REST API
cd code/api
python3 api.py

This starts a Flask-Restful API at http://127.0.0.1:5000

# runs web server
cd code/app/client
python3 client.py

This starts a Flask-Restful API at http://127.0.0.1:9000

API Endpoints

PS: [WIP] Formal documentation

/credible -> To compare information across multiple credible sources

Steps to add a new endpoint to the API

  1. Create a class in ml/model.py which will hold all the Machine Learning model code
  2. Create a flask-restful class which will handle the requests in api/api/py and add appropriate endpoints for that class
  3. Collect input data from an HTML template using requests in app/client.py
  4. Link app/client.py to REST API class
  5. Return ML model result to new HTML file in app/client/views/ and display it there

Team Details

  1. Akhilesh Nirna
  2. Aviral Joshi
  3. Hardik Mahipal Surana

Acknowledgement

We would like to thank our guide, Dr. S Natarajan, for his support. We would also like to thank the teachers and administration of PES University.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published