Python 个性洞察-分析来自不同用户的评论

Python 个性洞察-分析来自不同用户的评论,python,ibm-watson,personality-insights,Python,Ibm Watson,Personality Insights,我正在发送一个JSON文件,其中包含来自不同用户的多条评论和评论,但似乎响应是一般性的,而不是通过JSON中的“内容”字段发送的每一条评论。API是否能够为每个用户的每条评论返回见解?还是将其视为单个用户的多个注释? 例如,我对不同的用户进行了以下评论: { "contentItems": [ { "content": "amazon's business model is incredible, is riding a number of

我正在发送一个JSON文件,其中包含来自不同用户的多条评论和评论,但似乎响应是一般性的,而不是通过JSON中的“内容”字段发送的每一条评论。API是否能够为每个用户的每条评论返回见解?还是将其视为单个用户的多个注释? 例如,我对不同的用户进行了以下评论:

{
       "contentItems": [
         {
           "content": "amazon's business model is incredible, is riding a number of secular trends (ecommerce, cloud, ai), and the stock is a winner. employees are making more money than expected.+ leadership principles drive a high performance culture that focuses on customers. it feels great to work on products that customers love.+ you get to work on very difficult problems with smart people. once you establish yourself as a high performer, you have a high level of job security and internal mobility. teams are constantly hiring and building really innovative things and you are encouraged to move around and explore.+ teams tend to be lean and you will be asked to learn a lot quickly. ownership is highly valued.+ office environment is really desirable. located in a great downtown seattle neighborhood, many people walk to work, bring dogs to the office, and restaurants and bars are very accessible.+ amazon veterans tend to be incredibly talented individuals, and other companies realize it. being successful at amazon is well respected in the industry.. - work/life balance can be a challenge. work demands are high and teams are often too lean. you have to set your own boundaries. even with kind managers, overachievers will feel under water.- frugality as a core value goes overboard. if amazon doesn't have to give it you, it won't. no perks, no free food or drinks, bad coffee, unsubsidized cafeterias, mediocre hardware for non-technical people. there doesn't seem to be a morale budget and you will have few official team outings.- compensation policies are not employee friendly: 401k matching is subpar. once your signing cash bonus is fully vested, your entire compensation will be base salary and stock. base salary is capped at ~$160k across the company. stock vests twice a year if you're below a director, so your compensation is very lumpy. stock price appreciation is taken into consideration in your total compensation targets (ie if the value of previously offered shares increases, the company will count that as a raise and might not grant you additional stock bonuses, despite strong performance).",
           "contenttype": "text/plain",
           "id": "19"
         },
         {
           "content": "--> culture & leadership principles - the amazon leadership principles are not a mission statement that was developed and then forgotten. we live and die by these principles and they drive our culture... and the culture is pretty great!--> work with super smart, very talented people",
           "contenttype": "text/plain",
           "id": "250"
         },
         {
           "content": "1) when christmas season is busy time, management seems nice to everyone and act like they love and respect that you came to work each day, you can do no wrong as long as your busy. after a year i now know that working for wal*mart just sucks monkey balls!!!!!",
           "contenttype": "text/plain",
           "id": "66674"
         }
       ]
     }
我希望每个评论都有一个带有个性见解的输出。相反,我对所有的评论都有一个一般性的回应。所以,我想知道服务是否能够做到这一点,或者我是否必须为每个用户发送一个JSON?
该问题与其他问题相关,但我需要处理1000条或更多来自不同用户的评论,而不是单个用户的1000条推文。

您需要每人发送一个请求,但即使可以与不同用户发送一个请求,也要为每个用户获取一个配置文件,在您的示例中,两个内容将作为错误返回。这是因为PI需要至少100个字才能给出结果,而最后两条推文的字数不到100个字,所以您无法获得个人资料

可以为您提供有关获取个人资料所需的字数以及使用少量字数的缺点的更多信息


如果在您的用例中,通常不可能获得至少100个单词,那么使用PI可能是不可行的,但您至少可以获得一些关于用户语气的信息,这不是一回事,但可以提供一些关于每个用户的信息。

谢谢Felipe,实际上我有超过300个单词的评论。现在我正试图为每个人/评论生成数千个.json:)