Translating Strings in Python with TextBlob

python_tutorials

Introduction

Text translation is a difficult computer problem that gets better and easier to solve every year. Big companies like Google are actively working on improving their text translation services which enables the rest of us to use them freely.

Apart from their great personal use, these services can be used by developers through various APIs. This article is about TextBlob which uses one such API to perform text translation.

What is TextBlob?

TextBlob is a text-processing library written in Python. According to its documentation, it can be used for part-of-speech tagging, parsing, sentiment analysis, spelling correction, translation, and more. In this article, we’ll focus on text translation.

Internally, TextBlob relies on Google Translate’s API. This means that an active internet connection is required for performing translations.

Installing TextBlob

Let’s start off by installing TextBlob using pip, and downloading the corpora of

To finish reading, please visit source site