【发布时间】:2011-09-19 06:14:55
【问题描述】:
我想从 bing 字典中获取数据,而不是从翻译器中获取数据,我该如何在我的 c# 应用程序中进行操作?
【问题讨论】:
标签: c#-4.0 dictionary bing
我想从 bing 字典中获取数据,而不是从翻译器中获取数据,我该如何在我的 c# 应用程序中进行操作?
【问题讨论】:
标签: c#-4.0 dictionary bing
您在 Bing Translator UI 中看到的字典无法通过 API 获得。
克里斯·温特 微软翻译
【讨论】:
here's a c# implementation,也可以查看http://dict.bing.com.cn/io.aspx(必应字典协议服务器)。
【讨论】:
其实你可以直接从urlhttp://www.microsofttranslator.com/dictionary.ashx?from=en&to=zh-CHS&text=sore解析输出
来自 = 原始语言
to = 翻译成你想要的语言
text = 原文中的单词
字符串源; //从url响应输出
字符串翻译 = System.Uri.UnescapeDataString(source);
【讨论】: