AnalyzeEntitiesWithSentiment Processor
Part of the GCP Natural Language processor family
Last updated
Part of the GCP Natural Language processor family
Last updated
This processor takes in an input string and returns textual references to real world items (such as names, places, etcetera). This processor has an added feature compared to the "standard" AnalyzeEntities processor, which is that each entity will also have a sentiment attached to it. This sentiment represents how that particular entity is spoken about (positively or negatively) in the text.
The resulting Sentiments are reported with two values: score
and magnitude
. Per the official documentation:
score
ranges from -1.0 (negative sentiment) to 1.0 (positive sentiment)magnitude
indicates the overall strength of the emotion (both positive and negative)
This means that, for example, a sentence with a sentiment that has a score of 0.8 and a magnitude of 1.7 means it's a very strongly positive message. Similarly, a sentiment with a score of -0.2 with a magnitude of 0.2 is likely a "lightly" negative message.
All of our Natural Language processors also include these common properties.
This processor does not have any unique properties outside of the common ones.
Field Name
Data Type
Description
entities
array of Entity
The list of entities found by the API
language
string
The language code of the language the input string is in