Я пытаюсь преобразовать текст с французского на английский, используя функцию перевода в пакете translateR.Я использую переводчик MS.Кто-нибудь может помочь мне решить это?Я новичок в языке R и не очень разбираюсь в этом.
Этот код:
library(translateR)
res <- translate(content.vec = c("Hello world.", "This is a test."),
microsoft.client.id = "143bc77b-80fd-4a71-ae9d-7e37373fd84c",
microsoft.client.secret = "biAW515)[jpbulULGTK11$+",
source.lang = "en",
target.lang = "de")
res
Выдает ошибку:
Error in function (type, msg, asError = TRUE) :
Could not resolve host: datamarket.accesscontrol.windows.net
In addition: Warning message:
The content appears to be in MIDDLE_FRISIAN. However, the language code you provided suggests that
the text is in ENGLISH. If you entered the wrong language code, stop the process. Otherwise,
translateR will treat the text as ENGLISH.