Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- es
|
| 4 |
+
- en
|
| 5 |
+
- cab
|
| 6 |
+
license: mit
|
| 7 |
+
library_name: transformers
|
| 8 |
+
pipeline_tag: translation
|
| 9 |
+
tags:
|
| 10 |
+
- nllb
|
| 11 |
+
- garifuna
|
| 12 |
+
- indigenous-languages
|
| 13 |
+
- multilingual
|
| 14 |
+
model_name: Garifuna-Spanish-English NLLB MVP
|
| 15 |
+
base_model: facebook/nllb-200-distilled-600M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Garifuna-Spanish-English NLLB Translation
|
| 19 |
+
|
| 20 |
+
This is a fine-tuned version of Meta's **NLLB-200 (600M)** specialized for translation between **Spanish**, **English**, and **Garifuna**.
|
| 21 |
+
|
| 22 |
+
## 🌍 Supported Languages
|
| 23 |
+
- **Spanish** (`spa_Latn`)
|
| 24 |
+
- **English** (`eng_Latn`)
|
| 25 |
+
- **Garifuna** (`cab_Latn`)
|
| 26 |
+
|
| 27 |
+
## 💡 Improvements in this Version
|
| 28 |
+
- **Trilingual Support:** Unlike the previous version, this model has been trained on a dataset that includes English pairings, allowing for broader translation capabilities.
|
| 29 |
+
|
| 30 |
+
## 🚀 Quick Start (Python)
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
from transformers import pipeline
|
| 34 |
+
|
| 35 |
+
model_id = "your-username/your-repo-name"
|
| 36 |
+
|
| 37 |
+
translator = pipeline(
|
| 38 |
+
"translation",
|
| 39 |
+
model=model_id,
|
| 40 |
+
src_lang="eng_Latn", # Can also be "spa_Latn"
|
| 41 |
+
tgt_lang="cab_Latn"
|
| 42 |
+
)
|
| 43 |
+
|
| 44 |
+
# Example: English to Garifuna
|
| 45 |
+
print(translator("Hello"))
|