Analyse sentiment
Read how positive or negative a text is, overall and sentence by sentence (Cloud Natural Language).
Command in the Google Cloud AI toolkit · id ooa.google_ai/language_sentiment · 3 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | google_ai | Name of the session opened by Connect. |
| Text | String | Yes | The text to read, at most 1,000,000 bytes. | |
| Language | String | No | Language of the text, e.g. en, de or ja. Leave empty to detect it. |
Outputs
| Output | Type | What it is |
|---|---|---|
| sentiment | String | positive (score 0.25 or more), negative (-0.25 or less) or neutral. |
| score | Number | From -1 (negative) to 1 (positive). |
| magnitude | Number | How strong the feeling is overall, from 0 up. |
| language | String | Language of the text, as given or detected. |
| sentences | Table | Columns: text, score, magnitude. |