text_tran: Texts Translatation

View source: R/text_tran.R

text_tranR Documentation

Texts Translatation

Description

Texts Translatation

Usage

text_tran(rawtext, appid, keyimp, from = "en", to = "zh")

Arguments

rawtext

a text which is translated

appid

from BaiDu

keyimp

form BaiDu

from

what language rawtext belong to, and default is 'en' which is English

to

the translated target language, and default is 'zh' which is Chinese

Details

call BaiDu App to translate texts. See https://api.fanyi.baidu.com/product/113. Free version is limited to calling one time by one second.

Examples


# write your appid and key
# text_tran('apple',appid = '', keyimp = '')

common2016/MyFun documentation built on Sept. 23, 2024, 3:49 p.m.