Downloads · 30 days
14
37% of all-time downloads
MT-Informal-Languages/Helsinki_lg_inf_en
Helsinki_lg_inf_en is a machine learning model from MT-Informal-Languages. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model translates informal Luganda sentences to English. It was trained on a dataset of Luganda proverbs with their English translations. The dataset consists of 3135 examples.
Downloads · 30 days
14
37% of all-time downloads
All-time downloads
38
Public
Parameters
77.1M
308 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors308 MB · 99%
From the Hugging Face model README
This model translates informal Luganda sentences to English. It was trained on a dataset of Luganda proverbs with their English translations. The dataset consists of 3135 examples.
Train: The training data consists of 3135 Luganda proverbs and their corresponding English translations. Eval: The evaluation data is part of the training data and consists of informal sentences.
Architecture: Seq2Seq Pretrained Model: Helsinki-NLP/opus-mt-ug-en Fine-tuning: The model was fine-tuned for 50 epochs with a learning rate of 2e-5.
Source Language: Luganda Target Language: English Domain: Informal sentences and proverbs
Here is an example of how to load and use the model for translation:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = 'your_model_name_on_hf_hub'
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Example input sentence in Luganda
input_sentence = 'Olutalo lwa nsi yonna lwazibwa omwaka oguwedde.'
inputs = tokenizer(input_sentence, return_tensors='pt')
outputs = model.generate(**inputs)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation)