Amazon Comprehend · JSON Structure

Openapi.Yml Detect Targeted Sentiment Request Structure

DetectTargetedSentimentRequest schema

Type: object Properties: 2 Required: 2
Machine LearningNatural Language ProcessingNLPText Analysis

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

Properties

Text LanguageCode

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-targeted-sentiment-request-structure.json",
  "name": "DetectTargetedSentimentRequest",
  "description": "DetectTargetedSentimentRequest schema",
  "type": "object",
  "properties": {
    "Text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CustomerInputString"
        },
        {
          "description": "A UTF-8 text string. The maximum string length is 5 KB."
        }
      ]
    },
    "LanguageCode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LanguageCode"
        },
        {
          "description": "The language of the input documents. Currently, English is the only supported language."
        }
      ]
    }
  },
  "required": [
    "Text",
    "LanguageCode"
  ]
}