函数错误(type,msg,asError = TRUE):无法解析主机:datamarket.accesscontrol.windows.net

时间:2018-05-18 11:29:37

标签: r

  

我正在尝试使用翻译将文本从法语转换为英语   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.

0 个答案:

没有答案