Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A django rest API wrapper for FSTs, and a docker container for them.

NotificationsYou must be signed in to change notification settings

UAlbertaALTLab/fst-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp