Question
Write the Python code that does the following (Using : IBM Watson translator) a. Prompts the user to enter the text that must be translated
Write the Python code that does the following (Using : IBM Watson translator)
a. Prompts the user to enter the text that must be translated
b. It should identify the language of the text that you entered & return the language and the confidence scores. Try extracting just the language with confidence >0.95 from the result below as this is the default result retuned by the function that returns several languages with their confidence scores. (10 points - points 5 each for the overall result & just extracting the language having confidence score >0.95 from the overall result)
c. Next it should prompt the user and ask for the language to which the text is to be translated. You can provide option for any five languages of your interest. These do not have to be necessarily as shown below. (5 points)
Should return the translation of the text once one of the above languages is selected. Try extracting just the language translation from the default result returned. (10 points 5 each for the overall result & just extracting the translation from the overall result)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started