AWSComprehendEntity

Objective-C

@interface AWSComprehendEntity

Swift

class AWSComprehendEntity

Provides information about an entity.

  • The zero-based offset from the beginning of the source text to the first character in the entity.

    This field is empty for non-text input.

    Declaration

    Objective-C

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

    Swift

    var beginOffset: NSNumber? { get set }
  • A reference to each block for this entity. This field is empty for plain-text input.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendBlockReference *> *_Nullable blockReferences;

    Swift

    var blockReferences: [AWSComprehendBlockReference]? { get set }
  • The zero-based offset from the beginning of the source text to the last character in the entity.

    This field is empty for non-text input.

    Declaration

    Objective-C

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

    Swift

    var endOffset: NSNumber? { get set }
  • The level of confidence that Amazon Comprehend has in the accuracy of the detection.

    Declaration

    Objective-C

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

    Swift

    var score: NSNumber? { get set }
  • The text of the entity.

    Declaration

    Objective-C

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

    Swift

    var text: String? { get set }
  • The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below.

    For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.

    Declaration

    Objective-C

    @property (nonatomic) AWSComprehendEntityType types;

    Swift

    var types: AWSComprehendEntityType { get set }