Skip to content

ETL pipeline + ML pipeline for NLP text classification + multi-label -multi-output+ Web APP for prediction

Notifications You must be signed in to change notification settings

canfang-feng/disaster-response-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disaster Response Text Classification

A web app to help emergency response to disaster. Based on ML methods, it classify the disaster data from Appen into different event categories, and send the messages to an appropriate disaster relief agency.

Dependencies

Install the python libraries defined in requirements.txt

pip install -r requirements.txt

Run instructions:

Run the following commands in the project's root directory to set up the database, train and save model, finally run the web app

Step 1: 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

Step 2: to run ML pipeline that trains classifier and saves. If you want to try different ML algorithms and tune the model to get higher accuracy, then add --tunning as agurunment to following command line.

python models/train_classifier.py --database_filepath data/DisasterResponse.db --model_filepath models/classifier.pkl

Step 3: to run the web app

python app/run.py

Step 4: go to https://127.0.0.1:3001/

Files

.
├── app
│   ├── run.py
│   └── templates
│       ├──go.html
│       └── master.html
├── data
│ ├── DisasterResponse.db
│ ├── disaster_categories.csv
│ ├── disaster_messages.csv
│ └── process_data.py
├── models
│ └── train_classifier.py
├── .gitignore
├── README.md
├── poetry.lock
└── pyproject.toml
 

About

ETL pipeline + ML pipeline for NLP text classification + multi-label -multi-output+ Web APP for prediction

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published