Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
Go to file
Jerin Philip 4640ae4091 Fixes copying around vocabs
Vocabs was earlier loaded in each thread and copied several times.
Modified this to be loaded only once in Service and reference used
consistently later on.

This change makes Tokenizer as a class rather moot, as there's only one
private member and a function. Moved this into TextProcessor.
SentenceSplitter, however remains a separate class.

utils.{h,cpp} had only a single loadVocabularies function, which
is at the moment required only in Service. Making loadVocabularies a
function inside Service and getting rid of utils.*.
2021-01-21 00:29:53 +00:00
3rd_party Updating CMakeLists to build main 2021-01-20 19:52:34 +00:00
app Moving main (mts) to app/ 2021-01-20 21:18:20 +00:00
doc Unified api draft (#1) 2020-10-29 09:17:32 +01:00
src Fixes copying around vocabs 2021-01-21 00:29:53 +00:00
.gitmodules Added "browsermt/marian-dev" as submodule 2020-11-09 12:02:51 +01:00
CMakeLists.txt Updating CMakeLists to build main 2021-01-20 19:52:34 +00:00
LICENSE Initial commit 2020-10-19 13:49:38 +02:00
README.md Updated README with 'Build' and 'Use' instructions 2020-11-16 13:09:42 +01:00

Bergamot Translator

Bergamot translator provides a unified API for (Marian NMT framework based) neural machine translation functionality in accordance with the Bergamot project that focuses on improving client-side machine translation in a web browser.

Build Instructions

$ git clone https://github.com/browsermt/bergamot-translator
$ cd bergamot-translator
$ mkdir build
$ cd build
$ cmake ../
$ make -j

Using Bergamot Translator

The build will generate the library that can be linked to any project. All the public header files are specified in src folder.