Description
R Interface to Yandex Translate API.
Description
'Yandex Translate' (https://translate.yandex.com/) is a statistical machine translation system. The system translates separate words, complete texts, and webpages. This package can be used to detect language from text and to translate it to supported target language. For more info: https://tech.yandex.com/translate/doc/dg/concepts/About-docpage/ .
README.md
RYandexTranslate
R package to translate text using Yandex Translate API.
##Installation
To install RYandexTranslate package:
library(devtools)
install_github("mukul13/RYandexTranslate")
To get free API key, sign up here
##Examples
To list all functions supported by RYandexTranslate package
library(RYandexTranslate)
ls("package:RYandexTranslate")
To get a list of translation directions supported by the service
api_key="YOUR API KEY"
directions=get_translation_direction(api_key)
To detect the language of the specified text
data=detect_language(api_key,text="आप कैसे है?")
To translate text to the specified language
data=translate(api_key,text="how are you?",lang="en-hi" )
##Resources