yandex_translate: Translates text to the specified language

Description Usage Arguments Value Examples

Description

Translates text to the specified language

Usage

1
yandex_translate(yandex_api_key, text = "", lang = "")

Arguments

yandex_api_key

yandex API key

text

The text to translate. The maximum size of the text being passed is 10000 characters.

lang

The translation direction. You can use any of the following ways to set it: As a pair of language codes separated by a hyphen ("from"-"to"). For example, en-ru indicates translating from English to Russian. As the final language code (for example, ru). In this case, the service tries to detect the source language automatically.

Value

translated text (character type) See https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/ for more details

Examples

1
translated_text = yandex_translate(yandex_api_key, text="voglio mangiare cena", lang="it-en")

kpolimis/yandextexttranslater documentation built on May 12, 2019, 8:47 a.m.