set_translate_option {fanyi} | R Documentation |
set_translate_option
Description
set appid and key of translation engine
Usage
set_translate_option(
appid,
key,
source = "baidu",
region = "southeastasia",
user_dict = NULL,
user_model = "glm-4"
)
Arguments
appid |
appid, "bing translate" will not use this input. |
key |
app key |
source |
translation engine |
region |
this is for bing use only, translation engine location, depends on your Azure service setting |
user_dict |
user defined dictionary ID, only used for 'source = "youdao"' |
user_model |
selected model used in for 'source = "chatglm"', one of |
Details
This function allows users to use their own appid and key
Value
No return value, called for side effects
Author(s)
Guangchuang Yu
[Package fanyi version 0.0.7 Index]