Instructions to use LocaleNLP/localenlp-hau-eng-0.01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LocaleNLP/localenlp-hau-eng-0.01 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="LocaleNLP/localenlp-hau-eng-0.01")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("LocaleNLP/localenlp-hau-eng-0.01") model = AutoModelForSeq2SeqLM.from_pretrained("LocaleNLP/localenlp-hau-eng-0.01") - Notebooks
- Google Colab
- Kaggle
Hausa β English Translation Model (localenlp-hau-eng-0.01)
This model is a fine-tuned version of Helsinki-NLP/opus-mt-mul-en for translating Hausa (hau) to English (eng). It was trained on 16,000 parallel sentence pairs and achieves strong performance on held-out test sets.
Developed and maintained by LocaleNLP β advancing African language technologies.
Metrics
BLEU Score: 49.62
chrF Score: 76.49
Limitations and Bias
Data Limitations: Training data of 15k sentences may not cover all Hausa dialects and domains
Bias Potential: May reflect biases present in the training data
Format Sensitivity: Performance may vary with input formatting and punctuation
Domain Adaptation: Best performance on text similar to training data
Model Card Authors
[Mgolo/LocaleNLP]
Framework Versions
Transformers 4.30.0
PyTorch 2.0.0+
Tokenizers 0.13.3
- Downloads last month
- -