Event-Severity-Scorer (ESS) is a pair-wise Event severity score system developed using Python and Django, with a Postgres database. The project aims to determine the severity of different events to the world economy based on their textual descriptions. Users are presented with two events and asked to decide which event is more severe. The severity score for each event is obtained from three different annotators, with scores ranging from 0 to 100. Once 1000 events have been annotated three times, the resulting dataset can be used to train a regression model capable of predicting the severity of future events.
To install the Python dependencies for this project, please follow these steps:
Ensure that Python is installed on your system. You can download the latest version of Python from the official Python website (https://www.python.org).
git clone <repository-url>
cd event-severity-scorer
python -m venv venv
venv\Scripts\activate
source venv/bin/activate
pip install -r requirements.txt
To install Django and set up the project, follow these instructions:
Ensure that the Python dependencies are installed by following the previous steps.
cd event-severity-scorer
python manage.py migrate
To install and set up Postgres for the project, please follow these steps:
Download and install PostgreSQL from the official website (https://www.postgresql.org) based on your operating system.
Create a new database for the project in your PostgreSQL installation.
Configure the database connection settings in the project’s settings.py
file to match your PostgreSQL database configuration.
db-backup.sql
To restore the database backup for the project, follow these steps:
Ensure that you have the db-backup.sql
file available.
Open a terminal or command prompt.
Navigate to the directory where the db-backup.sql
file is located.
Run the following command to restore the database backup:
psql -U <username> -d <database_name> -f db-backup.sql
Replace <username>
with your PostgreSQL username and <database_name>
with the name of the database you want to restore the backup to.
To run the project using Docker, please follow these steps:
Ensure that Docker is installed on your system. You can download Docker from the official Docker website (https://www.docker.com) based on your operating system.
git clone <repository-url>
cd event-severity-scorer
docker build -t event-severity-scorer .