GithubHelp home page GithubHelp logo

fake-news-challenge-nlp's Introduction

Introduction

This project is based off the first part of the Fake News Challenge(FNC-1) where the goal is "to explore how AI...might be able to combat the fake news problem." Identifying fake news is a complex task that can be broken down into a few steps, with a potential first being the comparison of topics or, more precisely, stance detection, across myriad news organizations. The goal of this project is to classify the relationship between a body of text with a headline as agree, disagree, discuss or unrelated.

As we are working with string data, there is a lot of pre-processing and feature engineering to do.

Data Preprocessing

  • removing punctuation
  • lower casing all text
  • removing stop words
  • tokenizing
  • stemming
  • creating n-grams

Feature Engineering

Modeling

Completed models include:

  • Adaboost
  • Gradient Boosing
  • LSTM Deep Learning

Dependancies

  • Scipy (pandas, numpy, matplotlib)
  • Scikit-Learn
  • NLTK
  • Gensim
  • Keras

I completed all work on a Google Compute Engine (GCE) VM. You can get up and running quickly with a jupyter connected VM on GCE following my post on Medium
Executing the preprocessing and feature engineering in one session will need ~800GB though, all data will be pickled for later use. I would however advise using numpy's .npz instead as it has quicker read/write times.

Future Work

  • Improve model performance
    • Different preprocessing
    • Model parameters
    • Explore Feature importance - which help most and why?
  • Model visualizations
  • Build Convolutional Neural Network
  • Begin real world application
    • Scrape news sites, archive data
    • Build a working record of sources and reliability

fake-news-challenge-nlp's People

Contributors

mgavish avatar

Watchers

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