Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationCounters

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

Overview

Evaluation counters for the documents that were used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3EvaluationCounters

Returns a new instance of GoogleCloudDocumentaiV1beta3EvaluationCounters.



10693
10694
10695
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10693

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)


10674
10675
10676
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10674

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)


10680
10681
10682
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10680

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)


10685
10686
10687
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10685

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)


10691
10692
10693
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10691

def invalid_documents_count
  @invalid_documents_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10698
10699
10700
10701
10702
10703
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10698

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