AWSComprehendClassifyDocumentResponse

Objective-C

@interface AWSComprehendClassifyDocumentResponse

Swift

class AWSComprehendClassifyDocumentResponse
  • The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendDocumentClass *> *_Nullable classes;

    Swift

    var classes: [AWSComprehendDocumentClass]? { get set }
  • Extraction information about the document. This field is present in the response only if your request includes 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 includes the Byte parameter.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendDocumentTypeListItem *> *_Nullable documentType;

    Swift

    var documentType: [AWSComprehendDocumentTypeListItem]? { 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 }
  • The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSComprehendDocumentLabel *> *_Nullable labels;

    Swift

    var labels: [AWSComprehendDocumentLabel]? { get set }