Amazon Comprehend · JSON Structure

Amazon Comprehend Entity Structure

Schema for an Amazon Comprehend entity detection result, representing named entities identified in text through NLP analysis.

Type: object Properties: 5
Machine LearningNatural Language ProcessingNLPText Analysis

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

Properties

Entities Sentiment SentimentScore KeyPhrases Languages

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/amazon-comprehend-entity-structure.json",
  "name": "Amazon Comprehend Entity",
  "description": "Schema for an Amazon Comprehend entity detection result, representing named entities identified in text through NLP analysis.",
  "type": "object",
  "properties": {
    "Entities": {
      "type": "array",
      "description": "A collection of entities identified in the input text.",
      "items": {
        "$ref": "#/$defs/Entity"
      }
    },
    "Sentiment": {
      "type": "string",
      "description": "The inferred sentiment detected in the input text.",
      "enum": [
        "POSITIVE",
        "NEGATIVE",
        "NEUTRAL",
        "MIXED"
      ]
    },
    "SentimentScore": {
      "type": "object",
      "description": "The confidence scores for each sentiment type.",
      "properties": {
        "Positive": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "Negative": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "Neutral": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "Mixed": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      }
    },
    "KeyPhrases": {
      "type": "array",
      "description": "A collection of key phrases identified in the input text.",
      "items": {
        "$ref": "#/$defs/KeyPhrase"
      }
    },
    "Languages": {
      "type": "array",
      "description": "The languages detected in the input text.",
      "items": {
        "$ref": "#/$defs/DominantLanguage"
      }
    }
  }
}