https://github.com/argosopentech/metaltranslate
Customizable machine translation in C++
https://github.com/argosopentech/metaltranslate
machine-learning nlp nlp-machine-learning translation
Last synced: 2 months ago
JSON representation
Customizable machine translation in C++
- Host: GitHub
- URL: https://github.com/argosopentech/metaltranslate
- Owner: argosopentech
- License: mit
- Created: 2022-06-16T22:01:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T13:06:43.000Z (about 1 year ago)
- Last Synced: 2025-03-28T03:11:44.265Z (3 months ago)
- Topics: machine-learning, nlp, nlp-machine-learning, translation
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 48
- Watchers: 4
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MetalTranslate
Customizable machine translation in C++MetalTranslate downloads and runs a pretrained [CTranslate2](https://github.com/OpenNMT/CTranslate2) translation model and [SentencePiece](https://github.com/google/sentencepiece) tokenizer model to translate locally with C++.
## Quickstart
### Linux
Tested on Ubuntu 22.04```
git clone --recursive https://github.com/argosopentech/MetalTranslate.git
cd MetalTranslate
./init
./build.sh
./build/metaltranslate "Hello world" en es```
### Windows
The [as-shura/MetalTranslate fork](https://github.com/as-shura/MetalTranslate/tree/cmake-external-github-repos) works on Windows.## Usage
MetalTranslate is designed to be experimental and used as a template for doing machine translation in C++. You will need to modify the [source code](https://github.com/argosopentech/MetalTranslate/blob/main/src/MetalTranslate.cpp) for most use cases.