import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetectTargetedSentimentRequest, DetectTargetedSentimentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetectTargetedSentimentCommand}. */ export interface DetectTargetedSentimentCommandInput extends DetectTargetedSentimentRequest { } /** * @public * * The output of {@link DetectTargetedSentimentCommand}. */ export interface DetectTargetedSentimentCommandOutput extends DetectTargetedSentimentResponse, __MetadataBearer { } declare const DetectTargetedSentimentCommand_base: { new (input: DetectTargetedSentimentCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetectTargetedSentimentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

*

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendClient, DetectTargetedSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import * // const { ComprehendClient, DetectTargetedSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import * // import type { ComprehendClientConfig } from "@aws-sdk/client-comprehend"; * const config = {}; // type is ComprehendClientConfig * const client = new ComprehendClient(config); * const input = { // DetectTargetedSentimentRequest * Text: "STRING_VALUE", // required * LanguageCode: "en" || "es" || "fr" || "de" || "it" || "pt" || "ar" || "hi" || "ja" || "ko" || "zh" || "zh-TW", // required * }; * const command = new DetectTargetedSentimentCommand(input); * const response = await client.send(command); * // { // DetectTargetedSentimentResponse * // Entities: [ // ListOfTargetedSentimentEntities * // { // TargetedSentimentEntity * // DescriptiveMentionIndex: [ // ListOfDescriptiveMentionIndices * // Number("int"), * // ], * // Mentions: [ // ListOfMentions * // { // TargetedSentimentMention * // Score: Number("float"), * // GroupScore: Number("float"), * // Text: "STRING_VALUE", * // Type: "PERSON" || "LOCATION" || "ORGANIZATION" || "FACILITY" || "BRAND" || "COMMERCIAL_ITEM" || "MOVIE" || "MUSIC" || "BOOK" || "SOFTWARE" || "GAME" || "PERSONAL_TITLE" || "EVENT" || "DATE" || "QUANTITY" || "ATTRIBUTE" || "OTHER", * // MentionSentiment: { // MentionSentiment * // Sentiment: "POSITIVE" || "NEGATIVE" || "NEUTRAL" || "MIXED", * // SentimentScore: { // SentimentScore * // Positive: Number("float"), * // Negative: Number("float"), * // Neutral: Number("float"), * // Mixed: Number("float"), * // }, * // }, * // BeginOffset: Number("int"), * // EndOffset: Number("int"), * // }, * // ], * // }, * // ], * // }; * * ``` * * @param DetectTargetedSentimentCommandInput - {@link DetectTargetedSentimentCommandInput} * @returns {@link DetectTargetedSentimentCommandOutput} * @see {@link DetectTargetedSentimentCommandInput} for command's `input` shape. * @see {@link DetectTargetedSentimentCommandOutput} for command's `response` shape. * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link InvalidRequestException} (client fault) *

The request is invalid.

* * @throws {@link TextSizeLimitExceededException} (client fault) *

The size of the input text exceeds the limit. Use a smaller document.

* * @throws {@link UnsupportedLanguageException} (client fault) *

Amazon Comprehend can't process the language of the input text. For a list of supported languages, * Supported languages in the Comprehend Developer Guide. *

* * @throws {@link ComprehendServiceException} *

Base exception class for all service exceptions from Comprehend service.

* * * @public */ export declare class DetectTargetedSentimentCommand extends DetectTargetedSentimentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetectTargetedSentimentRequest; output: DetectTargetedSentimentResponse; }; sdk: { input: DetectTargetedSentimentCommandInput; output: DetectTargetedSentimentCommandOutput; }; }; }