Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using python 2.7 and this is my code. I've got to use Textblob and Textblob isn't importing into Python 3.5 from textblob import

I am using python 2.7 and this is my code.

I've got to use Textblob and Textblob isn't importing into Python 3.5

from textblob import TextBlob

userInput = TextBlob raw_input("Type sentence: ")

translation = userInput.translate(to='es') print (translation)image text in transcribed

It's not working.

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions