代码之家  ›  专栏  ›  技术社区  ›  Paria Molayem

基于文本分析API和Postman的情感分析

  •  -1
  • Paria Molayem  · 技术社区  · 7 年前

    我有一个600000条Tweets的数据集,想使用微软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-邮递员。它也适用于postman,但同样的问题我不知道如何遍历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"}]
    }
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   Paria Molayem    7 年前