Downloads · 30 days
556
59% of all-time downloads
GoogleCalc/obolo-ai-translation
obolo-ai-translation is a translation model from GoogleCalc. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as mit.
This is an AI-powered translation tool for English to Obolo, built to support the important work of Obolo language preservation and translation.
Downloads · 30 days
556
59% of all-time downloads
All-time downloads
948
Public
Parameters
484M
3.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.9 GB · 100%
From the Hugging Face model README
This is an AI-powered translation tool for English to Obolo, built to support the important work of Obolo language preservation and translation.
Important Note: This is a technology demonstration and AI tool. The authoritative Obolo translations come from OLBTO (Obolo Language and Bible Translation Organization), the recognized experts in Obolo language and Bible translation.
My Role: I am an AI technology enthusiast bringing machine learning capabilities to support Obolo language visibility in the AI age.
Okejonah1 (Oke Nteigbanam J.)
The recognized authority on Obolo Bible translation and language preservation.
The dedicated linguists who documented Obolo grammar rules, vocabulary, and language structures.
The speakers, elders, and community members who preserve the Obolo language.
For providing the multilingual translation model.
| Contribution | Source | How Used |
|---|---|---|
| Bible Translations | OLBTO | 31,104 training pairs |
| Dictionary | Linguists and Researchers | 6,383 training pairs |
| Grammar Rules | Linguists and Researchers | 35 rules integrated |
| Language Data | Wikipedia and Community | Additional training data |
| English | Obolo |
|---|---|
| God | Awaji |
| father | Nte |
| world | isonyọn̄ |
| earth | linyọn̄ |
| light | utoon̄ |
| life | ugwem |
| day | usen |
| thank you | oniro |
| please | soso |
| spirit | Ekwukwu |
| kingdom | ido |
| name | erieen |
| English Bible Verse | Obolo Translation |
|---|---|
| In the beginning God created the heaven and the earth. | Me ibebene, Awaji îrom isinyọn̄ mè linyọn̄. |
| The Lord is my shepherd; I shall not want. | Okumugwem re ogwu ịkpụkpụo ugwem n̄a; mi inyịma mba dọgọ. |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
import json
model = M2M100ForConditionalGeneration.from_pretrained("Okejonah1/obolo-ai-translation")
tokenizer = M2M100Tokenizer.from_pretrained("Okejonah1/obolo-ai-translation")
# Load dictionary
with open("obolo_dictionary_master.json", "r") as f:
dictionary = json.load(f)
def translate(text):
# 1. Check dictionary first
text_lower = text.lower().strip()
if text_lower in dictionary:
return dictionary[text_lower]
# 2. Use AI model
tokenizer.src_lang = "en"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
outputs = model.generate(**inputs, max_length=128, num_beams=5)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translate("God")) # Awaji
print(translate("thank you")) # oniro
print(translate("please")) # soso
MIT License
Okejonah1 (Oke Nteigbanam J.)
To all who have worked to preserve and promote the Obolo language: Your work is the foundation upon which this AI tool is built. This project exists because of your dedication to the Obolo language.