2017-03-06 98 views
0

我试图运行一个示例应用程序,该应用程序获取Microsoft认知服务Text Analytics API的主题端点,但函数返回400 HTTP错误。无法获得认知服务中的主题端点

下面是代码:

static async Task<string> CallTopicEndpoint(HttpClient client, string uri, byte[] byteData) 
{ 
    using (var content = new ByteArrayContent(byteData)) 
    { 
     content.Headers.ContentType = new MediaTypeHeaderValue("application/json"); 
     var response = await client.PostAsync(uri, content); 
     // Return URL containing OperationID to poll from. 
     return response.Headers.GetValues("Operation-Location").First(); 
    } 
} 

全样本是在这里: https://text-analytics-demo.azurewebsites.net/Home/SampleCode

任何帮助表示赞赏。

谢谢。

回答

0

主题检测功能早已弃用。如果您仍然需要主题检测功能,则可能需要查看此主题检测Azure ML Experiment

Luis Cabrera |文本分析程序管理器|云AI平台,微软