Function marian::bergamot::app::wasm

Function Documentation

void marian::bergamot::app::wasm(Ptr<Options> options)

Previously bergamot-translator-app.

Provides a command-line app on native which executes the code-path used by Web Assembly. Expected to be maintained consistent with how the browser (Mozilla through WebAssembly) dictates its API and tests be intact. Also used in bergamot-evaluation.

Usage example: brt/tests/basic/test_bergamot_translator_app_intgemm_8bit.cpu-threads.0.sh

  • Input : read from stdin as sentences as lines of text.

  • Output: written to stdout as translations for the sentences supplied in corresponding lines

Parameters
  • [options]: Options to translate passed down to marian through Options.