chartes / deucalion-model-lasla

Modèle Pie entraîné sur les données du LASLA
Mozilla Public License 2.0
1 stars 0 forks source link

Deucalion Model Latin ENC - LASLA

Lien Docker

Credits

The web application and its maintenance is done by Thibault Clérice ( @ponteineptique ). To learn how to cite this repository, go check our releases.

Information about the model

LASLA Logo

The model is based on the LASLA data.

For more details about the errors, see the information folder.

Install

Locally, without docker:

pip install -r requirements.txt
pie-extended download lasla # Downloads the model
pie-extended install-addons lasla # Install required addons

then run with python flaskapp.py

With docker

To run, you'll need to install Docker. Then, you can simply run the following commands:

docker pull ponteineptique/deucalion-model-lasla:latest

or build locally from source (much longer, more freedom in changing some code source):

docker build -t deucalion-lasla:latest .
docker run -p 5001:5000 deucalion-lasla:latest

You can replace 5001 with any port you want to run the service on.

Then, simply go to http://127.0.0.1:5001 or directly to http://127.0.0.1:5001/api?data=Quid%20faciat%20volt%20scire%20Lyris%3A%20quod%20sobria%3A%20fellat. or post any data to the same URI with data parameters containing your plain text.