README.md 591 Bytes

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.