Answered step by step
Verified Expert Solution
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.
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
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