Skip to content

kama1kant/translation-english-to-hinglish

Repository files navigation

Translation English to Hinglish 🇬🇧 -> 🇮🇳

NLP library to translate English text into Hinglish.

Hinglish is a blend of words between Hindi & English

Eg;

English: Mahatma Gandhi is the father of the nation of India

Hindi: महात्मा गांधी भारत के राष्ट्रपिता हैं

Hinglish: Mahatma Gandhi bharat ke rashtrapita hae

Built by Kamal Kant

How it works

Model

This project uses Helsinki-NLP/opus-mt-en-hi model from Hugging Face transformers.

Inference

Above mentioned model is trained in translating English text to Hindi. Additional code has been added to convert Hindi text to Hinglish. As a summation, the library can convert any English text to Hinglish

How to run

  • Download the repository
  • Run the following command
streamlit run streamlit-translator-english-to-hinglish.py

Libraries used

  • Pytorch
  • Huggingface Transformers
  • Streamlit

Contact

If you have any questions or feedback, feel free to reach out to me at kamalkant.k3@gmail.com