Public | Automated Build

Last pushed: 6 months ago
Short Description
Server for GermaNER.
Full Description

The container provides an http wrapper for the named entity recognizer "GermaNER".

Usage

Starting the container

docker run -d -m 4g --name storyfinder-germaner -p 8080 kisad/storyfinder-germaner-git

Startup of the container will take a few minutes. You can check the status in the container log.

Notice: GermaNER requires at least 4g memory. If you are using Kitematic/Docker Toolbox make sure your VM has enough memory (default is 2g). See: http://stackoverflow.com/questions/32834082/how-to-increase-docker-machine-memory-mac

Parsing files

The server expects a HTTP POST request to http://container_ip:8080/germaner. Content-Type of the request must be "text/plain" and the body of the request has to contain the input text in the following format:

token1
token2
token3
.

e.g.

Angela
Merkel
besucht
Frankreich
.

CURL example

The file input.txt contains the input text:
curl -H "Content-Type: text/plain" -X POST --data @input.txt http://localhost:8080/germaner

Using custom models

You may use custom models for GermaNER by mounting the model dir to /germaner-src/resources

docker run -d -m 4g --name storyfinder-germaner -p 8080 -v /path/to/model/dir:/germaner-src/resources kisad/storyfinder-germaner-git

Docker Pull Command
Owner
kisad
Source Repository

Comments (0)