Google Cloud Document Ai V1 Client - Class DatasetValidation (1.13.1)

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

The dataset validation information.

This includes any and all errors with documents and the dataset.

Generated from protobuf message google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation

Namespace

Google \ Cloud \ DocumentAI \ V1 \ TrainProcessorVersionMetadata

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ document_error_count int

The total number of document errors.

↳ dataset_error_count int

The total number of dataset errors.

↳ document_errors array<Google\Rpc\Status>

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

↳ dataset_errors array<Google\Rpc\Status>

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

getDocumentErrorCount

The total number of document errors.

Returns
Type Description
int

setDocumentErrorCount

The total number of document errors.

Parameter
Name Description
var int
Returns
Type Description
$this

getDatasetErrorCount

The total number of dataset errors.

Returns
Type Description
int

setDatasetErrorCount

The total number of dataset errors.

Parameter
Name Description
var int
Returns
Type Description
$this

getDocumentErrors

Error information pertaining to specific documents. A maximum of 10 document errors will be returned.

Any document with errors will not be used throughout training.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDocumentErrors

Error information pertaining to specific documents. A maximum of 10 document errors will be returned.

Any document with errors will not be used throughout training.

Parameter
Name Description
var array<Google\Rpc\Status>
Returns
Type Description
$this

getDatasetErrors

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned.

A single dataset error is terminal for training.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDatasetErrors

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned.

A single dataset error is terminal for training.

Parameter
Name Description
var array<Google\Rpc\Status>
Returns
Type Description
$this