Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am I am using Python 2.7 from textblob import TextBlob userInput = TextBlob raw_input(Type sentence: ) translation = userInput.translate(to='es') print (translation) I'm trying to

I am

I am using Python 2.7

from textblob import TextBlob

userInput = TextBlob raw_input("Type sentence: ")

translation = userInput.translate(to='es') print (translation)

I'm trying to just get it to work with Spanish first.

image text in transcribed

Question 2. (40 points) Write a pseudocode for a program that allows users to translate text from English to one of the following two language: Spanish, and Arabic. The users should be able to type the text in English then choose one of the two languages. The program should then display the translated sentence (in the selected language) along with the sentiment level of the English text. The program should also displays the length of the original English sentence and the length of non-English sentence (10 points) Write the python program. (30 points) N.B. Your code should show appropriate use of naming conventions. Make sure you use clear comments throughout your program. Use appropriate if conditions to minimize errors. 1. 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago