Run get-models.sh
or get them yourself from clarin.si.
Build the Docker image:
$ ./build.sh
Run with docker-compose:
$ docker-compose up -d
The Anonymization API is listening for HTTP POST requests on port 80 by default under the /anonymize
path.
File in xml format should be passed via --data-binary
option with content type set to application/octet-stream
.
You can test the API with cURL:
$ curl -X POST --data-binary @<path_to_xml> -H "Content-Type: application/octet-stream" http://localhost:80/anonymize
Simple anonymization interface can be accessed via a web browser at http://localhost:80/
To enable the automatic start of container on system boot, first run the container and then execute:
$ cp docker-anonymization.service /etc/systemd/system/
$ systemctl enable docker-anonymization.service
$ systemctl start docker-anonymization
To start/stop the container manually run:
$ systemctl start docker-anonymization
$ systemctl stop docker-anonymization