Name Last Update
collector Loading commit data...
resources Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
Dockerfile.marcell Loading commit data...
INSTALL.md Loading commit data...
README.md Loading commit data...
docker-compose.yml Loading commit data...
entrypoint-marcell.sh Loading commit data...
entrypoint-ppc-dev.sh Loading commit data...
entrypoint.sh Loading commit data...
environment.yml Loading commit data...
requirements.txt Loading commit data...

README.md

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.