Google Cloud Document Ai V1 Client - Class Counters (2.1.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Counters.

Evaluation counters for the documents that were used.

Generated from protobuf message google.cloud.documentai.v1.Evaluation.Counters

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Evaluation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ input_documents_count int

How many documents were sent for evaluation.

↳ invalid_documents_count int

How many documents were not included in the evaluation as they didn't pass validation.

↳ failed_documents_count int

How many documents were not included in the evaluation as Document AI failed to process them.

↳ evaluated_documents_count int

How many documents were used in the evaluation.

getInputDocumentsCount

How many documents were sent for evaluation.

Returns
Type Description
int

setInputDocumentsCount

How many documents were sent for evaluation.

Parameter
Name Description
var int
Returns
Type Description
$this

getInvalidDocumentsCount

How many documents were not included in the evaluation as they didn't pass validation.

Returns
Type Description
int

setInvalidDocumentsCount

How many documents were not included in the evaluation as they didn't pass validation.

Parameter
Name Description
var int
Returns
Type Description
$this

getFailedDocumentsCount

How many documents were not included in the evaluation as Document AI failed to process them.

Returns
Type Description
int

setFailedDocumentsCount

How many documents were not included in the evaluation as Document AI failed to process them.

Parameter
Name Description
var int
Returns
Type Description
$this

getEvaluatedDocumentsCount

How many documents were used in the evaluation.

Returns
Type Description
int

setEvaluatedDocumentsCount

How many documents were used in the evaluation.

Parameter
Name Description
var int
Returns
Type Description
$this