Git Product home page Git Product logo

locksley's Introduction

Locksley ๐Ÿน

A minimalist web-based annotation tool for relation extraction. The interface is in German.

workbench

annotation interface

Deployment with docker

The web interface is deployed with the help of Docker and docker compose. Before using this repo, make sure both are installed.

There are three main components to the deployment process: Dockerfile, docker-compose.yml and sample.env. Dockerfile contains all internal settings of the virtualisation container for the web interface. docker-compose.yml coordinates the settings for the web interface and the database with all annotation data. To do so, the yml file uses environment variables from sample.env. If you want to deploy Locksley yourself, you will probably want to customise sample.env, e. g. the superuser and password settings for the database. Use the following command to start the Docker containers for the interface and the database:

$ docker-compose up -d

Use the following command to stop the services:

$ docker-compose down

Annotation data

The sentences in the data folder are all part of the 10kGNAD corpus that is released under a Creative Commons BY-NC-SA 4.0 license (www.github.com/tblock/10kGNAD). As a result, the sentences here are equally made available under CC BY-NC-SA 4.0 (https://www.creativecommons.org/licenses/by-nc-sa/4.0/).

You load the annotation data into the datasets by using the scripts in the django-unchained/annotation/management/commands directory. First, you need to add the data directory as a volume to the annotation service in your docker-compose file (cf. example docker-compose.yml in the root folder). Afterwards, you can execute the scripts as follows:

$ docker-compose run annotation [name_of_the_script]

Please note that the order in which the different types of data points are loaded matters:

  1. load_corpora.py
  2. load_relation_types.py
  3. load_testruns.py
  4. load_sentences.py
  5. load_batches.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.