pradyyadav / NewsClues

Fake News Detection App built on Django framework to classify a news is fake or real.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewsClues

Get your news verified

image_0

Classifies the news given as input as real or fake and uses Word2Vec model for creating word embeddings and these embeddings are then used in the embedding layer as weights.

Training accuracy : 0.9859

Validation accuracy : 0.9731

Kaggle Score : 0.98076

Machine Learning Techniques


  • Natural Language Processing
  • Word Embeddings using Word2Vec
  • Long Short Term Memory (LSTM) (RNN)

Model Summary


summary

Word2Vec


w2v_image

The purpose of Word2vec is to group the vectors of similar words together in vectorspace. That is, it detects similarities mathematically. Word2Vec creates vectors that are distributed numerical representations of word features, features such as the context of individual words.

LSTM


lstm

Long short-term memory (LSTM) is an artificial recurrent neural network (RNN) architecture used in the field of deep learning. Unlike standard feedforward neural networks, LSTM has feedback connections. It can not only process single data points (such as images), but also entire sequences of data (such as speech or video). A common LSTM unit is composed of a cell, an input gate, an output gate and a forget gate. The cell remembers values over arbitrary time intervals and the three gates regulate the flow of information into and out of the cell.

Learn more about LSTM in this article by Christopher Olah.

Instructions to run locally


  • Clone this repository
$ git clone https://github.com/pradyyadav/NewsClues 
  • Check Django Installation
$ python -m django --version 
  • Install Django if not installed
$ python -m pip install Django
  • Install all the dependencies
$ pip install -r requirements.txt

Languages and Frameworks


  • Python
  • Django (Framework for Python)

Libraries


Machine Learning Libraries

  • Numpy
  • Pandas
  • Scikit-Learn
  • WordCloud

Deep Learning Libraries

  • Tensorflow

Language Processing Libraries

  • NLTK
  • Gensim (For Word2Vec)

About

Fake News Detection App built on Django framework to classify a news is fake or real.


Languages

Language:Python 82.6%Language:HTML 12.0%Language:CSS 5.4%