translate: Translates text to the specified language

Description Usage Arguments Value Examples

View source: R/yandex.R

Description

Translates text to the specified language

Usage

1
translate(api_key, text = "", lang = "")

Arguments

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

data frame giving translated text

Examples

1
2
3
4
## Not run: 
data=translate(api_key,text="how are you?",lang="hi")

## End(Not run)

mukul13/RYandexTranslate documentation built on Sept. 26, 2019, 2:21 p.m.