Skip to content

mukundS0ni/language-translator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

language-translator

The project is made using IBM Watson Cloud studio. It requires an API key and unique URL to get the language translator. And then to get the language codes for different languages we use JSON_Normalize from Pandas. Using these codes we pass them into model_id attribute of translate method. For eg: translation_hindi = language_translator.translate(text=english_text, model_id='en-hi') for English to Hindi conversion. Then, we use get_result() method to get the result of translation. Lastly, to get the translated data/sentence we use translation['translations'][0]['translation'] to access the converted sentence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%