translate {RYandexTranslate} | R Documentation |
Translates text to the specified language
Description
Translates text to the specified language
Usage
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
## Not run:
data=translate(api_key,text="how are you?",lang="hi")
## End(Not run)
[Package RYandexTranslate version 1.0 Index]