File size: 1,897 Bytes
bf318a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ebaa500
bf318a5
 
 
 
 
 
 
 
 
67e5243
 
bf318a5
 
 
 
67e5243
bf318a5
 
 
 
ebaa500
bf318a5
 
 
 
 
 
 
 
ebaa500
bf318a5
 
 
 
 
 
 
 
 
 
 
 
 
 
ebaa500
bf318a5
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
language:
- sw
- en
license: apache-2.0
tags:
- translation
- swahili
- english
- opus-mt
- openchs
datasets:
- nllb
- ccaligned
metrics:
- bleu
- chrf
- comet
---

# Swahili-English Translation Model for Child Helpline Services

## Model Description

This model is a fine-tuned version of `Helsinki-NLP/opus-mt-mul-en` for Swahili-to-English translation, specifically optimized for child helpline call transcriptions in East Africa.

**Developed by:** BITZ IT Consulting Ltd  
**Project:** OpenCHS (Open Child Helpline System)  
**Funded by:** UNICEF Venture Fund  
**License:** Apache 2.0

## Performance

### Test Set (General Translation)
- **BLEU:** 0.2272
- **chrF:** 42.25
- **Improvement over baseline:** +0.0%

### Domain Evaluation (Call Transcriptions)
- **Domain BLEU:** 0.0000
- **Domain chrF:** 2.90
- **Domain COMET-QE:** 0.0000

## Intended Use

**Primary Use Case:** Translating Swahili helpline call transcriptions to English for case documentation, quality assurance, and cross-border referrals.

**Languages:** Swahili (source) → English (target)

## Usage

```python
from transformers import MarianTokenizer, MarianMTModel

model_name = "brendaogutu/sw-en-translation-v1"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)

swahili_text = "Habari za asubuhi. Ninaitwa Amina na nina miaka 14."
inputs = tokenizer(swahili_text, return_tensors="pt", padding=True)
outputs = model.generate(**inputs, num_beams=5, max_length=256)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation)
```

## Training Details

**Base Model:** Helsinki-NLP/opus-mt-mul-en  
**Training Epochs:** 8  
**Batch Size:** 128  
**Learning Rate:** 3e-05  
**Hardware:** NVIDIA GPU with FP16 mixed precision

---

*This model is part of the OpenCHS project supporting child helpline services across East Africa.*