- This is a project analyzing message data for disaster response.
- Before you start read this page, please check your system env first.
- This project developed in Ubuntu 18.04 LTS 64 bit with Python 3.6.6 (ATTENTION: NOT Anaconda Env.!).
- After develop this project, I also test the pipeline scripts in Windows 10 64bit with Python 3.7 64bit (ATTENTION: NOT Anaconda Env.!).
- Please don't use the Anaconda Env, and I suggest you to use Ubuntu or any other Linux to run it.
- This project develop under Python 3.6.6. Let's have a look of the directory tree:
DisasterResponse/ --> project directory
├── data --> dataset directory(only for notebook)
│ ├── categories.csv
│ └── messages.csv
├── ETL Pipeline Preparation.html --> html export from notebook
├── ETL Pipeline Preparation.ipynb --> ETL pipeline notebook
├── LICENSE --> license file
├── ML Pipeline Preparation.html --> html export from notebook
├── ML Pipeline Preparation.ipynb --> ML pipeline notebook
├── pipeline --> pipeline project directory
│ ├── app --> the flask app directory
│ │ ├── run.py --> flask main run file
│ │ └── templates --> flask templates directory
│ │ ├── go.html
│ │ └── master.html
│ ├── data --> dataset directory for pipline
│ │ ├── disaster_categories.csv
│ │ ├── disaster_messages.csv
│ │ └── process_data.py --> process_data for ETL pipeline
│ ├── models --> models directory
│ │ └── train_classifier.py --> train_classifier for ML pipeline
│ └── README.md --> pipeline README file
└── README.md --> main README file
nltk 3.3
pickleshare 0.7.4
pandas 0.23.2
numpy 1.14.5
SQLAlchemy 1.2.12
sklearn 0.0
scipy 1.1.0
- cd to the pipeline directory
- python3 data/process_data.py data/disaster_messages.csv data/disaster_categories.csv data/DisasterResponse.db
- python3 models/train_classifier.py data/DisasterResponse.db models/classifier.pkl
- cd to the pipeline/app directory
- python3 run.py
- go to http://0.0.0.0:3001/
- If you have any trouble when you use the pipeline, at first you need to read the README.md in pipeline/ directory.
- Maybe you can Email me: kyle@hacking-linux.com