Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationCounters

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

Evaluation counters for the documents that were used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1EvaluationCounters

Returns a new instance of GoogleCloudDocumentaiV1EvaluationCounters.



4517
4518
4519
# File 'lib/google/apis/documentai_v1/classes.rb', line 4517

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#evaluated_documents_countFixnum

How many documents were used in the evaluation. Corresponds to the JSON property evaluatedDocumentsCount

Returns:

  • (Fixnum)


4498
4499
4500
# File 'lib/google/apis/documentai_v1/classes.rb', line 4498

def evaluated_documents_count
  @evaluated_documents_count
end

#failed_documents_countFixnum

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

Returns:

  • (Fixnum)


4504
4505
4506
# File 'lib/google/apis/documentai_v1/classes.rb', line 4504

def failed_documents_count
  @failed_documents_count
end

#input_documents_countFixnum

How many documents were sent for evaluation. Corresponds to the JSON property inputDocumentsCount

Returns:

  • (Fixnum)


4509
4510
4511
# File 'lib/google/apis/documentai_v1/classes.rb', line 4509

def input_documents_count
  @input_documents_count
end

#invalid_documents_countFixnum

How many documents were not included in the evaluation as they didn't pass validation. Corresponds to the JSON property invalidDocumentsCount

Returns:

  • (Fixnum)


4515
4516
4517
# File 'lib/google/apis/documentai_v1/classes.rb', line 4515

def invalid_documents_count
  @invalid_documents_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4522
4523
4524
4525
4526
4527
# File 'lib/google/apis/documentai_v1/classes.rb', line 4522

def update!(**args)
  @evaluated_documents_count = args[:evaluated_documents_count] if args.key?(:evaluated_documents_count)
  @failed_documents_count = args[:failed_documents_count] if args.key?(:failed_documents_count)
  @input_documents_count = args[:input_documents_count] if args.key?(:input_documents_count)
  @invalid_documents_count = args[:invalid_documents_count] if args.key?(:invalid_documents_count)
end