Coder Social home page Coder Social logo

disaster-resp-pipeline's Introduction

Disaster Response Pipeline Project

Table of Contents

Environment

Beside standard Conda Library, follow library need to installed:

  • argparse

Following packages needs to be downloaded from NLTK before first used:

  • punkt
  • stopwords
  • wordnet

Instructions of Running the Programs:

  1. Run the following commands in the project's root directory to set up your database and model. argparse is introduced instead of python default arg library from python.

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

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

Project Overview

Data Engineering, NLP and Flask API were applied to build an APP/API which potentially help emergency department to pass related disaster agency faster.

Structure of Projects:

app:

templates(for Web API)
    go.html 
    master.html

Data:

disaster_categories.csv (disaster lable file)
disaster_messages.csv (disaster message)
DisasterResponse.db (output db file, NOT include in this git)
process_data.py (Main Program to clean and transform the source files for model to consume)

model:

classifier.pkl (Model output file, NOT including in the git)
train_classifier.py ( Main Program to read Source DB, train and save the model) 

Delivery:

A web API was created to show the summary of 36 disaster categories and functionality to categorized new disaster messages to its corresponding categories.

Examples and Screenshot

Categorize messages:

Distribution of genres:

Top and Bottom 10 Counts of Categories:

disaster-resp-pipeline's People

Contributors

swang2-wiq 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.