Skip to content

LoveTropics/translatador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translatador

Translatador is a minimal C wrapper around Bergamot Translator, providing lightweight offline translation of text on the CPU. It additionally supports detection of 67 languages by providing bindings to whatlang-rs.

Translatador provides Java bindings, which you can find more about here.

Usage

This repository includes a simple example project to help you to get started with Translatador.

Models

Translatador does not support training models: as such, you will need to use a pretrained model built for Bergamot. We recommend taking a look at Mozilla's CPU-optimized open-source models in the firefox-translation-models project, which are currently used for offline translation within Firefox.