Downloads · 30 days
3
6% of all-time downloads
idejavyu/marian-uk-en-translate
marian-uk-en-translate is a translation model from idejavyu. Use it when you need text moved from one language to another. The card lists the license as mit.
This is a fine-tuned MarianMT model for translation between English and Ukrainian.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
52
Public
Parameters
75.7M
910 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt606 MB · 66%
From the Hugging Face model README
This is a fine-tuned MarianMT model for translation between English and Ukrainian.
from transformers import MarianMTModel, MarianTokenizer
model_name = "your-username/marian-uk-en-translate"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
src_text = ["Вітаю. Ви використали текст для прикладу!"]
batch = tokenizer(src_text, return_tensors="pt", padding=True)
generated = model.generate(**batch)
print(tokenizer.batch_decode(generated, skip_special_tokens=True))