项目作者: mleila

项目描述 :
Early Warning System of Operations Disruptions from COVID-19
高级语言: Jupyter Notebook
项目地址: git://github.com/mleila/CovidDisrupt.git
创建时间: 2020-03-22T23:50:05Z
项目社区:https://github.com/mleila/CovidDisrupt

开源协议:MIT License

下载


CovidDisrupt

Early Warning System of Operations Disruptions from COVID-19.

Discovery of COVID-19 cases leads to local responses that may lead to supply chain disruptions. This application allows users to recive a message once a case has been found in a specific region of interest.

Installtion

Use the following command to install the package to your local python environment. The installation will add all necessary binaries to your path.

pip install CovidDisrupt

Configuration

Create a config.json and secrets.json from their templates.

  1. mv secrets.template.json secrets.json
  2. mv config.template.json config.json

Add your AWS credentials and News API key to the config and secrets json files.

Usage

Ingestion

For now, NewsApi is the only supported API. To ingest data to s3 use the following command

  1. ingest_data \
  2. --topic 'covid' \
  3. --keywords 'corona OR covid OR coronavirus' \
  4. --start-date '2020-02-26' \
  5. --end-date '2020-03-29'

Processing

Process ingested data to prepare it for analysis.

  1. process_data --topic 'covid'

Modelling

Train ML models, or run inference pipleines, on the data using AWS SageMaker (BlazingText) and AWS Comprehend

  1. model_data --topic 'covid' --words 50

Demo

To visualize the results, run the Dash application

  1. python covidash/index.py

alt text