AWSComprehendDetectEntitiesResponse
Objective-C
@interface AWSComprehendDetectEntitiesResponse
Swift
class AWSComprehendDetectEntitiesResponse
-
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The
Block
content for a Word input document does not include aGeometry
field.The
Block
field is not present in the response for plain-text inputs.Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSComprehendBlock *> *_Nullable blocks;
Swift
var blocks: [AWSComprehendBlock]? { get set }
-
Information about the document, discovered during text extraction. This field is present in the response only if your request used the
Byte
parameter.Declaration
Objective-C
@property (nonatomic, strong) AWSComprehendDocumentMetadata *_Nullable documentMetadata;
Swift
var documentMetadata: AWSComprehendDocumentMetadata? { get set }
-
The document type for each page in the input document. This field is present in the response only if your request used the
Byte
parameter.Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSComprehendDocumentTypeListItem *> *_Nullable documentType;
Swift
var documentType: [AWSComprehendDocumentTypeListItem]? { get set }
-
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSComprehendEntity *> *_Nullable entities;
Swift
var entities: [AWSComprehendEntity]? { get set }
-
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSComprehendErrorsListItem *> *_Nullable errors;
Swift
var errors: [AWSComprehendErrorsListItem]? { get set }