README.md 764 Bytes

COLLECTOR

Running MARCELL annotate API using Docker

Using docker-compose

docker-compose up -d

Using docker

docker build -t "marcell-pl" -f Dockerfile.marcell .
docker run --name "marcell-pl-running" -p 8006:8000 -d marcell-pl

Exemplary usage in Python

import requests

url = 'http://<container_url>:<exposed_port>/annotate'
with open('/text/file/path.[txt/html/pdf]', 'rb') as text_file,  open('/meta/file/path.json', 'rb') as meta_file, open('/output/file/path.conllup', 'wb') as conllup_file:
    response = requests.post(url=url, files={'text': text_file, 'meta': meta_file}, timeout=3600)
    conllup_file.write(response.content)

Conda based installation

See INSTALL.md for installation instructions.