Smaws_Client_Textract.AnalyzeDocumentAnalyzes an input document for relationships between detected items.
The types of information returned are as follows:
Block objects, each of type KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.Block object contains information about a detected table. A CELL Block object is returned for each cell in a table.Block object contains one or more WORD Block objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of FeatureTypes).Block object contains the location information of a signature in a document. If used in conjunction with forms or tables, a signature can be given a Key-Value pairing or be detected in the cell of a table.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 ] ->
stringval 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.resultval 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