Skip to content

This Project is part of the Data Science Nanodegree Program by Udacity in collaboration with Figure Eight. The dataset contains pre-labeled tweets and messages from real-life disaster events. The project's aim is to build a Natural Language Processing (NLP) model to categorize messages on a real-time basis.

Notifications You must be signed in to change notification settings

maanavshah/disaster-resp-pipeline

Repository files navigation

Disaster Response Pipeline Project

This project is to classify disaster response messages through machine learning.

Content

  • Data
    • process_data.py: reads in the data, cleans and stores it in a SQL database. Basic usage is python process_data.py MESSAGES_DATA CATEGORIES_DATA NAME_FOR_DATABASE
    • disaster_categories.csv and disaster_messages.csv (dataset)
    • DisasterResponse.db: created database from transformed and cleaned data.
  • Models
    • train_classifier.py: includes the code necessary to load data, transform it using natural language processing, run a machine learning model using GridSearchCV and train it. Basic usage is python train_classifier.py DATABASE_DIRECTORY SAVENAME_FOR_MODEL
  • App
    • run.py: Flask app and the user interface used to predict results and display them.
    • templates: folder containing the html templates

Example:

python process_data.py disaster_messages.csv disaster_categories.csv DisasterResponse.db

python train_classifier.py ../data/DisasterResponse.db classifier.pkl

python run.py

Screenshots

This is the frontpage: Alt text

By inputting a word, you can check its category: Alt text

About

This project was prepared as part of the Udacity Data Scientist nanodegree programme. The data was provided by Figure Eight.

About

This Project is part of the Data Science Nanodegree Program by Udacity in collaboration with Figure Eight. The dataset contains pre-labeled tweets and messages from real-life disaster events. The project's aim is to build a Natural Language Processing (NLP) model to categorize messages on a real-time basis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published