Views
No views yet
| Category | Thaana Input | Model Output |
|---|---|---|
| Global Politics | ސީރިއާގެ ކަންކަމުގެ ތެރެއަށް އިސްރާއީލް ނުވަނުމަށް | Syria ge kankamuge thereah Israel nuvanumah |
| Acronyms | ރާއްޖޭގެ ރެކޯޑުތައް އދ އިން ބަލަނީ | Raajjeyge record thah UN in balanee |
| English Loan Words | ސްކޭމާއި ދެކޮޅަށް ހިންގި ޚާއްސަ އޮޕަރޭޝަނެއް | Scam aai dhekolhah hingi khaassa operation eh |
| Sports | ވެސްޓް ހޭމް އަތުން ޗެލްސީ އަށް މޮޅެއް | West Ham athun Chelsea ah molheh |
| Dates | އޮކްޓޯބަރ 3 ގެ މުޒާހަރާ | October 3 ge muzaaharaa |
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3tokenizer = AutoTokenizer.from_pretrained("Neobe/dhivehi-byt5-thaana2latin-v1")
4model = AutoModelForSeq2SeqLM.from_pretrained("Neobe/dhivehi-byt5-thaana2latin-v1")
5
6text = "ސީރިއާގެ ކަންކަމުގެ ތެރެއަށް އިސްރާއީލް ނުވަނުމަށް ޓްރަމްޕް ގޮވާލައްވައިފި"
7inputs = tokenizer(text, return_tensors="pt")
8
9outputs = model.generate(**inputs, max_length=256)
10
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))
12# Output: Syria ge kankamuge thereah Israel nuvanumah Trump govaalavvaifi