Name Last Update
collector Loading commit data...
resources Loading commit data...
tools Loading commit data...
.env.app Loading commit data...
.env.db Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
INSTALL.md Loading commit data...
README.md Loading commit data...
docker-compose.yml 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

docker-compose up -d

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.