Spaces:
Sleeping
Sleeping
File size: 466 Bytes
d5bf2ac |
1 2 3 4 5 6 7 8 9 10 |
!pip install ai4bharat-transliteration
from ai4bharat.transliteration import XlitEngine
e = XlitEngine(["gu", 'en'], beam_width=10, src_script_type = "en")
def english_to_gujarati(text):
e = XlitEngine(["gu", 'en'], beam_width=10, src_script_type="en")
return e.translit_sentence(text)
english_question = input("Enter your question in English: ")
gujarati_question = english_to_gujarati(english_question)
print("Transliterated question:", gujarati_question)
|