Перевод текста - PullRequest
       25

Перевод текста

0 голосов
/ 01 апреля 2019

Привет, я использую textblob версии 0.15.3 и получаю следующую ошибку при попытке просто перевести текст:

UnicodeEncodeError: 'charmap' codec can't encode character '\xa1' in position 0: character maps to <undefined>

Вот мой код:

from textblob import TextBlob

#create textblop objet for string
analysis = TextBlob("TextBlob sure looks like it has some interesting features!")

print(analysis.translate(to='es'))
...