Skip to content

signon-project/wp4-embedding2text-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SignON Embedding-to-Text Machine Translation Component

This is the repository containing the code of the SignON embedding-to-text machine translation component. This component is a web service built with Flask that receives a embedding representation from the SignON SLR componet (https://github.com/signon-project/wp3-slr-component) and machine translates it into an target language.

Installation

This component is built to run in a Docker container (see Dockerfile).

The model checkpoint is available in https://huggingface.co/signon-project/slt-embedding-to-text. The best.ckpt checkpoint must be included in the src/model/ folder.

Testing

To test the component within the pipeline, you need to have the docker container running. For that, there are two options:

  • Using the run_dockerized.sh script to create an interactive bash interpreter and run the server there:
./run_dockerized.sh
cd src; python slt_server.py ## To be executed inside the container
  • Build and run the container in detach mode:
docker build -t embedding2text-translation .
docker run -v ${PWD}/model:/model --name embedding2text-translation -p 5001:5001 -d embedding2text-translation

LICENSE

This code is licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •