You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This repo provides a wrapper over hfst-altlab to expose an FST as a json api.
Once deployed, the documentation for the api appears when visiting the deployed URL.
Docker configuration for FST_API
To deploy this docker image, you must have a.env file inside thedocker/ folder with the following variables:
FST_API_FST_PATH: (required) The path where the FSTs are stored in the machine hosting the docker image. It is necessary for making the FSTs available inside the docker image.
FST_API_ANALYSER_FST: (optional) The filename of the analyser FST (with extension, without path). If missing, it defaults to "analyser.hfstol"
FST_API_GENERATOR_FST: (optional) The filename of the generator FST (with extension, without path). If missing, it defaults to "generator.hfstol"
If you intend to expose the API on the Internet instead of just using it locally, you should add to the.env file the allowed host names, for example:
FST_API_ALLOWED_HOSTS=ciw-api.altlab.dev
Building docker image and starting
cd docker/docker compose builddocker compose up -d
About
A django rest API wrapper for FSTs, and a docker container for them.