Module Smaws_Client_Textract.AnalyzeDocument

Analyzes an input document for relationships between detected items.

The types of information returned are as follows:

Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block object contains information about a selection element, including the selection status.

You can choose which type of analysis to perform by specifying the FeatureTypes list.

The output is returned in a list of Block objects.

AnalyzeDocument is a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.

For more information, see Document Text Analysis.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `InternalServerError of Types.internal_server_error | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.analyze_document_request -> (Types.analyze_document_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `InternalServerError of Types.internal_server_error | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.analyze_document_request -> (Types.analyze_document_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `BadDocumentException of Types.bad_document_exception | `DocumentTooLargeException of Types.document_too_large_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `InternalServerError of Types.internal_server_error | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ThrottlingException of Types.throttling_exception | `UnsupportedDocumentException of Types.unsupported_document_exception ] * Smaws_Lib.Response.metadata) Stdlib.result