Skip to content

A preference judgment system for document ranking used in Linh Nhi's thesis user study

Notifications You must be signed in to change notification settings

UWaterlooIR/judgo-trec2021-linhnhi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

judgo

https://judgo.herokuapp.com

Install Application with Docker

Step 0- Before install this project make sure your sysytem has docker and docker-compose installed.

Step 1- Clone project and run the following command inorder to ingest corpus to dataset.

docker-compose up --build -d 

# find the name of web container it should be something like judgo_web_xx
docker ps
# to enter web container
docker exec -i -t judgo_web_xx /bin/bash
cd src
# ingest data to dataset with the following command
python manage.py shell < fixtures/ingest_data.py 

# Press CTRL+D to exit from container

Step 2- Open http://0.0.0.0:8000/

Install Application without Docker

Step 0- After clone project, create an activate a new virtual environment and run:

pip install -r requirements/base.txt

Step 1- Go to web folder create a new foloder named 'logs' and create a file named 'logs.log'

Step 2- Go to web/web create .env file and fill the following information:

SECRET_KEY='xxxxxx'
ENGINE="django.db.backends.sqlite3"
NAME="db.sqlite3"
USER="user"
PASSWORD="password"
HOST="localhost"
PORT=5432

You can change them if you want to use anyother databases

Step 3- Run the following commands:

python manage.py collectstatic
python manage.py makemigrations
python manage.py migrate --run-syncdb
python manage.py createsuperuser

# if you want to ingest msmarco sample data to database
python manage.py shell < fixtures/ingest_msmarco_data.py

python manage.py runserver

Step 4- Open http://0.0.0.0:8000/

About

A preference judgment system for document ranking used in Linh Nhi's thesis user study

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.7%
  • HTML 23.8%
  • CSS 22.5%
  • JavaScript 3.8%
  • Other 0.2%