V
V
vetsinen2018-09-11 12:12:01
API
vetsinen, 2018-09-11 12:12:01

Are there any working libraries/api for translating texts?

good afternoon, you need to automatically translate a set of texts with an average size of three paragraphs into Russian. Fairly average translation quality. I tried a couple of python libraries, but according to the manuals they did not start. can someone suggest a proven free or moderately paid api-service/library for translation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yahabrovec, 2018-09-13
@yahabrovec

You can use the Yandex translator API. Installation via pip
The code is impossibly simple. Here is an example:

from yandex import Translater
tr = Translater()
tr.set_key('Здесь ключ полученный на сайте яндекса') 
tr.set_from_lang('en')
tr.set_to_lang('ru')
tr.translate("Слово которое хотите перевести")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question