Downloads · 30 days
0
TiberiuCristianLeon/Lingvanex
Lingvanex is a translation model from TiberiuCristianLeon. Use it when you need text moved from one language to another. The card lists the license as mit.
Open sourced Lingvanex translation models.
Downloads · 30 days
0
Access
Public
Updated Nov 25, 2025
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.bin2.9 GB · 98%
From the Hugging Face model README
Open sourced Lingvanex translation models.
Open source Lingvanex translation models using ctranslate2.
import sentencepiece as spm
from ctranslate2 import Translator
path_to_model = 'en_co'
source = 'en'
target = 'co'
translator = Translator(path_to_model, compute_type='int8')
source_tokenizer = spm.SentencePieceProcessor(f'{path_to_model}/{source}.spm.model')
target_tokenizer = spm.SentencePieceProcessor(f'{path_to_model}/{target}.spm.model')
text = [
'I need to make a phone call.',
'Can I help you prepare food?',
'We want to go for a walk.'
]
input_tokens = source_tokenizer.EncodeAsPieces(text)
translator_output = translator.translate_batch(
input_tokens,
batch_type='tokens',
beam_size=2,
max_input_length=0,
max_decoding_length=256
)
output_tokens = [item.hypotheses[0] for item in translator_output]
translation = target_tokenizer.DecodePieces(output_tokens)
print('\n'.join(translation))
[ctranslate2]