Coder Social home page Coder Social logo

ahmadsherief / disaster-response Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 9.98 MB

An application that enables an emergency worker to input a new message and get classification results in several categories. This application can be extended to send forward the message to its relevant specialized organization.

License: MIT License

Python 71.25% HTML 28.75%

disaster-response's Introduction

Disaster Response

An application that classifies emergency messages to their relevant categories based on the text input. This application can be extended to forward the message to its relevant specialized organization. The training data is provided by Figure Eight.

Table of contents

Quick Start

There are 2 options available:

Project Motivation

The objective of this project is to help people in disasters, when help in needed the most, by build an application where people having an emergency can input a new message which then gets classified to its relevant categories. This application can be extended to forward the message to its relevant specialized organization.

Application Description

The application's frontend is built with Flask and Plotly, while the backend is written in Python.

The application is divided into 3 folders:

  • data

    • Contains the data that is fed to the machine learning model after it's wrangling.
  • models

    • Containing the machine learning model which uses a LinearSVC pipeline with GridSearchCV to classify the emergency message.
  • app

    • Puts everything together, displays visuals for the dataset generated in the data folder, and provides a user interface where a person can send a message to be classified.

Usage

After getting the repo,

  1. Run the following commands in the project's root directory 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 in the app's directory to run your web app. python run.py

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

Author

Ahmad Sherief

Copyright and License

Code is released under the MIT License.

disaster-response's People

Contributors

ahmadsherief avatar

Watchers

 avatar

Forkers

ahmedhesham6

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.