Motivation of this project is to classify text messages during a disaster to make them reachable by responsible parties.
Please use virtualenv and after you can install necessary libraries using requirements.txt
pip install -r requirements.txt
disaster_response_pipeline
|-- app
|-- templates
|-- go.html
|-- master.html
|-- run.py
|-- data
|-- disaster_message.csv
|-- disaster_categories.csv
|-- DisasterResponse.db
|-- process_data.py
|-- models
|-- classifier.pkl
|-- train_classifier.py
|-- requirements.txt
|-- README
- app folder containts relevant files for flask app.
- data folder contains all the csv files and combined db file.
- models folder includes the trained model and the classifier code.
-
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
- To run ETL pipeline that cleans data and stores in database
-
Run the following command in the app's directory to run your web app.
python run.py
-
Go to http://0.0.0.0:3001/
This project is developed to fulfil the requirements of Udacity Data Scientist Nanodegree. You can use any part of the code in anywhere without any permission to do anything.