HelpMum-Personal
commited on
Commit
•
035fcbe
1
Parent(s):
aba0b46
Update README.md
Browse files
README.md
CHANGED
@@ -39,8 +39,8 @@ To use this model for translation tasks, you can load it from Hugging Face’s `
|
|
39 |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
|
40 |
|
41 |
# Load the fine-tuned model
|
42 |
-
model = M2M100ForConditionalGeneration.from_pretrained("
|
43 |
-
tokenizer = M2M100Tokenizer.from_pretrained("
|
44 |
|
45 |
# translate igbo to English
|
46 |
igbo_text="Nlekọta ahụike bụ mpaghara dị mkpa n'ihe fọrọ nke nta ka ọ bụrụ obodo ọ bụla n'ihi na ọ na-emetụta ọdịmma na ịdịmma ndụ nke ndị mmadụ n'otu n'otu. Ọ gụnyere ọtụtụ ọrụ na ọrụ dị iche iche, gụnyere nlekọta mgbochi, nchoputa, ọgwụgwọ na njikwa ọrịa na ọnọdụ. Usoro nlekọta ahụike dị mma na-achọ imeziwanye nsonaazụ ahụike, belata ọrịa ọrịa, yana hụ na ndị mmadụ n'otu n'otu nwere ohere ịnweta ọrụ ahụike dị mkpa."
|
|
|
39 |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
|
40 |
|
41 |
# Load the fine-tuned model
|
42 |
+
model = M2M100ForConditionalGeneration.from_pretrained("HelpMumHQ/AI-translator-9ja-to-eng")
|
43 |
+
tokenizer = M2M100Tokenizer.from_pretrained("HelpMumHQ/AI-translator-9ja-to-eng")
|
44 |
|
45 |
# translate igbo to English
|
46 |
igbo_text="Nlekọta ahụike bụ mpaghara dị mkpa n'ihe fọrọ nke nta ka ọ bụrụ obodo ọ bụla n'ihi na ọ na-emetụta ọdịmma na ịdịmma ndụ nke ndị mmadụ n'otu n'otu. Ọ gụnyere ọtụtụ ọrụ na ọrụ dị iche iche, gụnyere nlekọta mgbochi, nchoputa, ọgwụgwọ na njikwa ọrịa na ọnọdụ. Usoro nlekọta ahụike dị mma na-achọ imeziwanye nsonaazụ ahụike, belata ọrịa ọrịa, yana hụ na ndị mmadụ n'otu n'otu nwere ohere ịnweta ọrụ ahụike dị mkpa."
|