Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,28 @@
|
|
| 1 |
---
|
| 2 |
-
pipeline_tag: text2text-generation
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
- roman-numerals
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
license: apache-2.0
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
tags:
|
| 3 |
+
- text2text-generation
|
| 4 |
- roman-numerals
|
| 5 |
+
- yoruba
|
| 6 |
+
- byt5
|
| 7 |
license: apache-2.0
|
| 8 |
+
library_name: transformers
|
| 9 |
+
pipeline_tag: text2text-generation
|
| 10 |
+
model_type: encoder-decoder
|
| 11 |
+
base_model: google/byt5-small
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Yoruba Roman Numerals Expert System 🇳🇬🔢
|
| 15 |
+
|
| 16 |
+
This model is fine-tuned from **google/byt5-small** to translate **Roman numerals** (e.g. 'i','v','x',`'XIV`, `V̅M`, up to 6000) into **Yoruba text**.
|
| 17 |
+
|
| 18 |
+
## Example Usage
|
| 19 |
+
|
| 20 |
+
```python
|
| 21 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 22 |
+
|
| 23 |
+
tokenizer = AutoTokenizer.from_pretrained("Emeritus-21/yorubanumerals-expertsystem")
|
| 24 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("Emeritus-21/yorubanumerals-expertsystem")
|
| 25 |
+
|
| 26 |
+
inputs = tokenizer("V̅M", return_tensors="pt")
|
| 27 |
+
outputs = model.generate(**inputs)
|
| 28 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|