Open GuangchuangYu opened 11 months ago
when i run y <- dplyr::mutate(x2,Description=en2cn(Description)) An error message is displayed.
Error in mutate()
:
ℹ In argument: Description = en2cn(Description)
.
Caused by error in vapply()
:
! 值的长度必需为1,
但FUN(X[[2]])结果的长度却是0
Run rlang::last_trace()
to see where the error occurred.
✔ Bing translate supported, https://github.com/YuLab-SMU/fanyi/pull/1.
Maybe you forgot deepl and OpenAI, the latter one has good translation performance but requires so-called prompt engineering :)
~Edit: the next translation engine I wanna add is volcengine (火山引擎 which is the subsidiary cloud platform owned by 字节跳动).~ (Done, 2023-12-25)
volcengine supported.
腾讯翻译君 is supported, see https://github.com/YuLab-SMU/fanyi/pull/17 ~Next platform I wanna support is ChatGLM, this is the LLMaaS (Large Language Model as a Service, in Chinese: 大型语言模型即服务) by 智谱AI开放平台.~ (Done: 2024-01-07 at https://github.com/YuLab-SMU/fanyi/pull/18)
写了一个翻译功能,用了百度翻译。在R包中可以直接用翻译,在某些场景之下,还是蛮方便的。
翻译源有很多,感兴趣的小伙伴,可以读一读api文档,写一下相应的翻译功能。