Sign inSign up

p0w3r/codebook_automation_api

By p0w3r

Updated over 5 years ago

Image
0

866

p0w3r/codebook_automation_api repository overview

Travis (.org) Docker Cloud Build Status Docker Cloud Automated build

Codebook Automation API

This is a simple python-based REST API to facilitate using state-of-the-art NLP models in WebAnno.

How to add models

Coming soon...

How to run locally

Assuming that your in the root folder of this repository

pip install -r requirements.txt
DATA_ROOT=/your/custom/data/path uvicorn main:app --host 0.0.0.0 --port 8081

How to run with docker

Make sure to set the correct environment variables in the .env file!

docker-compose up -d

Docker images will be pulled from docker-hub if not available on the system. To manually and locally build the image run:

docker build -t p0w3r/codebook_automation_api:latest .
docker build -t p0w3r/codebook_automation_app:latest ./cba_webapp/

How to run tests

Assuming that

  • $PWD is root folder of this repository
  • config.backend.data_root_env_var == "DATA_ROOT"
PYTHONPATH=${PWD} DATA_ROOT=/tmp pytest

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

over 5 years ago

docker pull p0w3r/codebook_automation_api