Downloads · 30 days
7
30% of all-time downloads
manancode/opus-mt-el-eo-ctranslate2-android
opus-mt-el-eo-ctranslate2-android is a translation model from manancode. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
This is a quantized INT8 version of Helsinki-NLP/opus-mt-el-eo converted to CTranslate2 format for efficient inference.
Downloads · 30 days
7
30% of all-time downloads
All-time downloads
23
Public
Repo size
50.4 MB
Likes
0
Public
Click a slice to open those files.
.bin49.8 MB · 98%
From the Hugging Face model README
This is a quantized INT8 version of Helsinki-NLP/opus-mt-el-eo converted to CTranslate2 format for efficient inference.
import ctranslate2
import sentencepiece as spm
# Load the model
translator = ctranslate2.Translator("path/to/model")
# Load tokenizers
sp_source = spm.SentencePieceProcessor(model_file="source.spm")
sp_target = spm.SentencePieceProcessor(model_file="target.spm")
# Translate
source_tokens = sp_source.encode("Your text here", out_type=str)
results = translator.translate_batch([source_tokens])
translation = sp_target.decode(results[0].hypotheses[0])
This INT8 quantized version provides:
Based on the OPUS-MT project: https://github.com/Helsinki-NLP/Opus-MT