Coder Social home page Coder Social logo

disaster-response-pipeline's Introduction

Disaster Response Pipeline

The aim of the project is to build a Natural Language Processing tool that categorize messages. The initial dataset contains pre-labelled tweet and messages from real-life disaster provided by Figure Eight.

The Project is divided in the following Sections:

  • Data Processing, ETL Pipeline to extract data from source, clean data and save it to a database
  • Machine Learning Pipeline to train a model to be able to classify the text messages to categories
  • Web Application to predict message's categories interactively

File Descriptions

  • data
    • disaster_categories.csv: dataset including all the categories
    • disaster_messages.csv: dataset including all the messages
    • process_data.py: ETL pipeline scripts that save the data into a SQLite database
    • DisasterResponse.db: output of the ETL pipeline, SQLite database containing messages and categories data
  • models
    • train_classifier.py: machine learning pipeline scripts to train and export a classifier
    • classifier.pkl: output of the machine learning pipeline, i.e. trained model
  • run.py: python file to run the web application
  • templates: contain HTML templates for the web application

Getting Started

Dependencies

  • Python 3.5+
  • NumPy, Pandas for data manipulation
  • Sciki-Learn machine learning library
  • NLTK for natural language processing
  • SQLalchemy python ORM
  • Flask web application framework
  • Plotly for data visualization

Instructions

  1. Run the following commands to set up your database and model.

    • To run ETL pipeline that cleans data and stores in database python data/process_data.py data/disaster_messages.csv data/disaster_categories.csv data/DisasterResponse.db
    • To run ML pipeline that trains classifier and saves python models/train_classifier.py data/DisasterResponse.db models/classifier.pkl
  2. Run the following command to run your web app. python run.py

  3. Go to http://localhost:3001/

disaster-response-pipeline's People

Contributors

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