-
Clone the repository.
-
Install Python 3.5+.
-
Install virtual environments for Python:
pip3 install --user virtualenv -
Create environment for the project, activate it, and install Python requirements:
virtualenv venv -p python3 source ./venv/bin/activate pip3 install -r requirements.txt -
Create database, the first super user, and collect static files:
python manage.py migrate python manage.py createsuperuser python manage.py collectstatic --no-post-processFollow instructions on your screen; do not leave the password empty.
-
Run the app on a local server:
python manage.py runserverOpen the browser at http://127.0.0.1:8000/. The admin panel is available at http://127.0.0.1:8000/admin
To create a campaign, a manifest file and data batches in JSON formats are needed.
See examples in Examples/ for simple end-to-end examples for
each annotation tasks that are currently available in Appraise.
Alternatively, a Django command can be created instead of the manifest file, see
Campaign/management/commands/InitCampaigh*.py for examples.
Specification
CAMPAIGN_URL: URL prefix for the SSO logins starting with the domain name (usuallyhttp://127.0.0.1:8000if run locally) and ending with/dashboard/sso/CAMPAIGN_NAME: a readable campaign name, must consist only of[a-zA-Z0-9]CAMPAIGN_KEY: a key used to generate password for user accounts, any UTF-8 stringCAMPAIGN_NO: a unique integer number used in the user account namesREDUNDANCY: how many times each task needs to be annotatedTASKS_TO_ANNOTATORS: list of task definition 5-tuples:- source language ISO code, tree-letter version
- target language ISO code, tree-letter version
- sampling strategy, only "uniform" is supported
- number of annotators, how many user accounts will be created for this task
- number of tasks, must be a multiple of the number of annotators
TASK_TYPE: a pre-defined task type name, seeCampaign/utils.pyfor a complete list of supported task types, the default is Direct