Argos Translate is a Python library for offline translation using installable language model packages.
Overview
Argos Translate is an open-source offline translation library written in Python. It uses OpenNMT for translation and can be used as a Python package, from the command line, or through a separate graphical interface in another repository.
Translation relies on downloadable language model packages stored as zip archives with an ".argosmodel" extension. An index repository lists metadata and download links for pre-trained models covering many language pairs. You install models per direction you need.
When no direct model exists between two languages, Argos Translate can pivot through an intermediate language if those models are installed, which broadens coverage at some cost to quality. Optional GPU use is controlled through an environment variable passed to CTranslate2.
LibreTranslate is a separate API and web application built on top of Argos Translate. Related libraries extend translation to HTML and files. The core package is available from PyPI via pip.
Key features
- Offline Python translation API
- Installable .argosmodel language packages
- Command-line translation interface
- Pivot translation via intermediate languages
- Optional CUDA GPU acceleration
- Package index for model downloads
- Dual MIT or CC0 licensing
Use cases
- Embedding offline translation in Python applications
- Batch or scripted text translation without cloud APIs
- Building custom translation stacks on OpenNMT models
- Piping text through a local CLI translator