Amazon Comprehend · JSON Structure

Openapi.Yml Detect Sentiment Response Structure

DetectSentimentResponse schema

Type: object Properties: 2
Machine LearningNatural Language ProcessingNLPText Analysis

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

Properties

Sentiment SentimentScore

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-detect-sentiment-response-structure.json",
  "name": "DetectSentimentResponse",
  "description": "DetectSentimentResponse schema",
  "type": "object",
  "properties": {
    "Sentiment": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SentimentType"
        },
        {
          "description": "The inferred sentiment that Amazon Comprehend has the highest level of confidence in."
        }
      ]
    },
    "SentimentScore": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SentimentScore"
        },
        {
          "description": "An object that lists the sentiments, and their corresponding confidence levels."
        }
      ]
    }
  }
}