Created
January 9, 2021 07:32
-
-
Save Davisy/7a2976d23b843c65ace0f4ff4c81ebb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google_trans_new import google_translator | |
translator = google_translator() | |
sentence = "Tanzania ni nchi inayoongoza kwa utalii barani afrika" | |
translate_text = translator.translate(sentence,lang_tgt='en') | |
print(translate_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment