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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!