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

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
NameDescription
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
TypeDescription
int

setDocumentErrorCount

The total number of document errors.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDatasetErrorCount

The total number of dataset errors.

Returns
TypeDescription
int

setDatasetErrorCount

The total number of dataset errors.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$this