Smaws_Client_Textract.AnalyzeExpenseAnalyzeExpense synchronously analyzes an input document for financially related relationships between text.
Information is returned as ExpenseDocuments and seperated as follows:
LineItemGroups- A data set containing LineItems which store information about the lines of text, such as an item purchased and its price on a receipt.SummaryFields- Contains all other information a receipt, such as header information or the vendors name.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
| `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_expense_request ->
(Types.analyze_expense_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
| `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_expense_request ->
(Types.analyze_expense_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
| `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