AWSComprehendTargetedSentimentMention

Objective-C

@interface AWSComprehendTargetedSentimentMention

Swift

class AWSComprehendTargetedSentimentMention

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

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

  • The offset into the document text where the mention begins.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable beginOffset;

    Swift

    var beginOffset: NSNumber? { get set }
  • The offset into the document text where the mention ends.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable endOffset;

    Swift

    var endOffset: NSNumber? { get set }
  • The confidence that all the entities mentioned in the group relate to the same entity.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable groupScore;

    Swift

    var groupScore: NSNumber? { get set }
  • Contains the sentiment and sentiment score for the mention.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSComprehendMentionSentiment *_Nullable mentionSentiment;

    Swift

    var mentionSentiment: AWSComprehendMentionSentiment? { get set }
  • Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable score;

    Swift

    var score: NSNumber? { get set }
  • The text in the document that identifies the entity.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable text;

    Swift

    var text: String? { get set }
  • The type of the entity. Amazon Comprehend supports a variety of entity types.

    Declaration

    Objective-C

    @property (nonatomic) AWSComprehendTargetedSentimentEntityType types;

    Swift

    var types: AWSComprehendTargetedSentimentEntityType { get set }