This is an API for POS using the ELG specification. The API is wrapped in a docker container and is implemented using fastapi.
make build
make run
All the API calls use post and input/outputs are in a json format. Further details about the api calls are automatically generated when the container is run and can be found in /docs or /redoc
HTTP METHOD | Description |
---|---|
/tagger | Takes in icelandic text and returns that text along with pos tags for each token in that text |
test files can be found in tests/
. There are two tests that can be performed.
- Normal api tests: this is where you test the api from the running docker image
- ELG api tests: this is where you run
docker-compose up
and get an instance as if you where running the docker image on ELG. To submit a api call you then need to send a post request to/process/service
.
This ELG API was developed in EU's CEF project: Microservices at your service
The underlying tool is POS by Haukur Páll Jónsson, Örvar Kárason and Steinþór Steingrímsson, which is licensed under this Apache License 2.0. POS is pip installed from a GitHub repository when the POS_API docker image is built.
The Tokenizer PyPi package is pip installed when the docker image is built. This tool was developed by Miðeind and is licensed under this MIT license. The ELG API implementation imports this PyPi package.