GithubHelp home page GithubHelp logo

summa-platform / summa-mt Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 176 KB

License: Other

Makefile 3.85% Python 61.35% Perl 25.00% Smalltalk 0.66% Emacs Lisp 5.98% JavaScript 0.29% NewLisp 0.56% Ruby 0.58% Slash 0.10% SystemVerilog 0.06% Shell 0.39% Dockerfile 1.17%

summa-mt's Introduction

Quick Start

If you are content using one of the SUMMA MT models, the easiest way is to just pull the docker image, e.g.

docker pull summaplatform/mt-engine-de-en:latest

The following engines are available:

  • summaplatform/mt-engine-de-en:latest
  • summaplatform/mt-engine-es-en:latest
  • summaplatform/mt-engine-fa-en:latest
  • summaplatform/mt-engine-lv-en:latest
  • summaplatform/mt-engine-pt-en:latest
  • summaplatform/mt-engine-ru-en:latest
  • summaplatform/mt-engine-uk-en:latest

The image currently provides a RabbitMQ worker for use within the SUMMA platform and a batch translation script for testing. For the latter, use, e.g.

cat source.txt | docker run --rm -i summaplatform/mt-engine-de-en ./translate.py --cpu-threads=2 [-v]

By default, the image uses as many threads as the host has cpus, but models are loaded sequentially, so using more threads increases the startup time.

To use your own model, you can map it into the container running the MT engine:

cat source.txt \
| docker run --rm -i -v /path/to/my/model:/model:ro summa-platform/mt-engine \
./translate.py --cpu-threads=2 [-v]

Quick Start

The Docker image build is staged

For the MT engine image

git clone https:github.com/summa-platform/summa-mt.git
cd summa-mt
make image/mt-build-environment
make image/mt-marian-compiled
make image/mt-basic-engine
make image/mt-engine

To download all SUMMA models:

make models

To build all model images

make model-images

To build a single model image

make image/mt-model-${L}-en

Where ${L} is one of de, es, fa, lv, pt, ru, uk.

To build all engine images

make engine-images

To build a single engine image:

make image/mt-engine-${L}-en

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.