Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用Microsoft Translation API翻译的测试的上限_C#_Bing Api_Microsoft Translator - Fatal编程技术网

C# 使用Microsoft Translation API翻译的测试的上限

C# 使用Microsoft Translation API翻译的测试的上限,c#,bing-api,microsoft-translator,C#,Bing Api,Microsoft Translator,我正在创建一个WS,它成功地使用Microsoft Bing翻译api翻译数据库内容。有人知道为了翻译成这个api而传入的文本的最大长度是多少吗?。我还没有在MS文档中找到它。谢谢Microsoft Translator API可以通过软件或网站直接使用四种接口中的任何一种:web小部件、AJAX、HTTP或SOAP,并且每种接口都有限制 使用AJAX,您可以通过AJAX服务V2传递TranslateArray: 包含翻译文本的数组。所有字符串必须使用相同的语言。所有待翻译文本的总数不得超过1

我正在创建一个WS,它成功地使用Microsoft Bing翻译api翻译数据库内容。有人知道为了翻译成这个api而传入的文本的最大长度是多少吗?。我还没有在MS文档中找到它。谢谢

Microsoft Translator API可以通过软件或网站直接使用四种接口中的任何一种:web小部件、AJAX、HTTP或SOAP,并且每种接口都有限制

使用AJAX,您可以通过AJAX服务V2传递TranslateArray:

包含翻译文本的数组。所有字符串必须使用相同的语言。所有待翻译文本的总数不得超过10000个字符。数组元素的最大数目为2000

使用Bing Translate API和WindowsAzure数据市场服务(translaterContainer.cs),您实际上可以同时传递多达1000个字符的字符串

使用HTTP/SOAP,每个请求可以传递2000到5000个字符,以优化吞吐量和响应时间