Converts Telugu Unicode script to colloquial Romanized Telugu (Tenglish) — the reverse direction of
harinpurumandla/tenglish-to-telugu.
Fine-tuned from
google/byt5-small on 5.6M transliteration pairs including 6,364 targeted synthetic pairs covering colloquial confusion patterns.
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3tokenizer = AutoTokenizer.from_pretrained("harinpurumandla/telugu-to-tenglish")
4model = AutoModelForSeq2SeqLM.from_pretrained("harinpurumandla/telugu-to-tenglish")
5
6def to_tenglish(text):
7 inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
8 outputs = model.generate(**inputs, max_length=128, num_beams=4)
9 return tokenizer.decode(outputs[0], skip_special_tokens=True)
10
11print(to_tenglish("నేను తెలుగు మాట్లాడతాను"))
12# nenu telugu matladatanu
13
14print(to_tenglish("చాలా బాగుంది"))
15# chala bagundi
Evaluated on a held-out val set (5,000 sampled pairs), beam search decoding (num_beams=4).
The CER is essentially flat between versions — the synthetic colloquial data did not significantly change reverse model performance. This is expected: the reverse direction (Telugu → Tenglish) has inherent ambiguity that cannot be resolved by more training data alone. The same Telugu word has multiple valid Tenglish spellings (e.g., అంతే → anthe, anthey, antey, ante), so CER against a single reference underestimates true model quality.
The forward model (Tenglish → Telugu) achieves 1.89% CER because Telugu Unicode is phonetically consistent — each romanization maps to one correct script form. The reverse direction has no such constraint: Tenglish spelling is not standardized, so the model must guess which of several valid conventions the reference used. A prediction of nenu vs nennu is linguistically correct but scores as an error.
For the forward direction (Tenglish → Telugu script), see
harinpurumandla/tenglish-to-telugu.
1@misc{telugu-to-tenglish-2026,
2 title={Telugu to Tenglish: Reverse Transliteration for Telugu Unicode Script},
3 author={Purumandla, Sai Harin Kumar Reddy},
4 year={2026},
5 url={https://huggingface.co/harinpurumandla/telugu-to-tenglish}
6}