问题
I am currently working with the Google Cloud Natural Language API and need to know how the magnitude value for a whole document (consisting of several sentences) is calculated?
For the document sentiment score the average of the scores for each sentence is taken. For the document magnitude I would have assumed that it's calculated by taking the absolute sum of the individual magnitude values for each sentence. But after testing some paragraphs it's clear that it's not the correct way to calculate it. Would anyone be able to explain this to me?
Any help is much appreciated!
回答1:
It is calculated as as the sum of the magnitudes from all sentences. Would you provide an example in your tests where this isn't correct?
来源:https://stackoverflow.com/questions/51398253/google-cloud-natural-language-api-how-is-document-magnitude-calculated