Amazon Comprehend · JSON Structure

Openapi.Yml Sentiment Score Structure

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

Type: object Properties: 4
Machine LearningNatural Language ProcessingNLPText Analysis

SentimentScore is a JSON Structure definition published by Amazon Comprehend, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Positive Negative Neutral Mixed

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-structure/openapi.yml-sentiment-score-structure.json",
  "name": "SentimentScore",
  "description": "Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.",
  "type": "object",
  "properties": {
    "Positive": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Float"
        },
        {
          "description": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>POSITIVE</code> sentiment."
        }
      ]
    },
    "Negative": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Float"
        },
        {
          "description": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>NEGATIVE</code> sentiment."
        }
      ]
    },
    "Neutral": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Float"
        },
        {
          "description": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>NEUTRAL</code> sentiment."
        }
      ]
    },
    "Mixed": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Float"
        },
        {
          "description": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>MIXED</code> sentiment."
        }
      ]
    }
  }
}