0

我有一个包含 600000 条推文的数据集,并且想使用 Microsoft Azure 认知服务进行情绪分析。我有一个密钥和端点,每个请求中限制为 5000 个请求和 1000 个记录。我测试了 4 种不同的方法:

1- PowerBI:问题是在每个请求中它只发送一条记录。所以我的限制将在 5000 条记录后结束。

2- R 中的“mscstexta4r”库:问题是它给出了 404 错误。我无法绕过这个错误。

3- https://northeurope.dev.cognitive.microsoft.com/docs/services/TextAnalytics.V2.0/operations/56f30ceeeda5650db055a3c9/console

凭我的凭据,它可以工作。只是问题是我无法遍历 600000 条记录,每次 1000 条记录。

4-邮递员。它也适用于邮递员,但同样的问题我不知道如何遍历 600000 条记录,每次 1000 条记录。

你能告诉我如何使用邮递员遍历我的记录吗?或者有没有更简单的方法来做到这一点?

请求正文的示例是:

{"documents": 
   [{"id":20001,"text":"hey volkswagen fans next my ride my story for will be 
   this vw microbus from framingham htt","language":"en"}, 
   {"id":20002,"text":"volkswagen just re released everyone favourite hippy 
   van now it electric","language":"en"},{"id":20003,"text":"volkswagen ceo 
   we will have transformed all of our new cars into smaphones on wheels 
   connectedcar","language":"en"}]
}
4

1 回答 1

0

我是用 Python 做的。检查https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/quickstarts/python以获取指导。

于 2018-07-15T12:00:05.977 回答