Skip to content

frank-a-i/disaster-response-handling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disaster response analysis helper

This is a demo app that analyses arbitrary text messages whether they are relevant for disaster protection and puts it with the help of AI into relevant categories (like 'missing people', 'child alone' or 'food') for a quicker processing of a human operator.

"Demo"

How to run

Running from scratch one needs to

  1. Create virtual environment (use requirements.txt for package list)

  2. Compose the dataset by python pipelines/etl.py

  3. Compose the classifier python pipelines/ml.py

  4. Run the interface python web_interface.py and follow the instructions on the console output

As a shortcut, 1. and 2. can be skipped when ressources/classifier.pkl exists.

Structure

This program needs an offline preparation before actual usage. This is covered in the pipelines directory, where

  • etl.py extracts data and composes a dataset
  • ml.py utilizes that dataset for preparing and training classifiers

Further files are for maintaining the UI

  • web_interface.py and UI.py for running the Flask environment
  • analyzer.py as used as an helper interface for the classifier

Copyright and license

Code and documentation copyright 2024 the Frank Alexander Ihle. Code released under the MIT License. Docs released under Creative Commons.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published