This is a simple Python script that translates English text to Hinglish. It retains certain English words while converting the rest to Hinglish, making it useful for bilingual communication.
- Clone the repository to your local machine:
git clone https://github.com/charan-teja2003/English_to_Hinglish.git
- Install the required dependencies:
!pip install -qU
transformers
sentence-transformers
accelerate
einops
xformers
- Run the translator script:
%cd English_to_Hinglish
!python /content/English_to_Hinglish/english_to_hinglish.py
- Input English text, and the script will generate the corresponding Hinglish translation.
You can customize the translation by adding or modifying English-to-Hinglish mappings in the 'english_to_hinglish' dictionary within the 'English_to_Hinglish.py' file.
Input (English):
I had about a 30 minute demo just using this new headset.
मैं 30 minute demo था सिर्फ इस नए headset का इस्तेमाल
This project is licensed under the MIT License.
- This project uses the Hugging Face Transformers library for machine translation.
Feel free to modify and improve this script as needed for your specific use case. Happy translating!