Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult

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

Overview

Evaluation result that contains one of accuracy, adherence or completeness evaluation result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult

Returns a new instance of GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult.



23026
23027
23028
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23026

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

Instance Attribute Details

#accuracy_decompositionGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition

Decomposition details for accuracy. Corresponds to the JSON property accuracyDecomposition



23013
23014
23015
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23013

def accuracy_decomposition
  @accuracy_decomposition
end

#adherence_rubricGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubric

Rubric result of the adherence evaluation. A rubric is ued to determine if the summary adheres to all aspects of the given instructions. Corresponds to the JSON property adherenceRubric



23019
23020
23021
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23019

def adherence_rubric
  @adherence_rubric
end

#completeness_rubricGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubric

Rubric details of the completeness evaluation result. Corresponds to the JSON property completenessRubric



23024
23025
23026
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23024

def completeness_rubric
  @completeness_rubric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23031
23032
23033
23034
23035
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23031

def update!(**args)
  @accuracy_decomposition = args[:accuracy_decomposition] if args.key?(:accuracy_decomposition)
  @adherence_rubric = args[:adherence_rubric] if args.key?(:adherence_rubric)
  @completeness_rubric = args[:completeness_rubric] if args.key?(:completeness_rubric)
end