Google Cloud Ai Platform V1 Client - Class SummarizationHelpfulnessInput (1.12.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SummarizationHelpfulnessInput.

Input for summarization helpfulness metric.

Generated from protobuf message google.cloud.aiplatform.v1.SummarizationHelpfulnessInput

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec SummarizationHelpfulnessSpec

Required. Spec for summarization helpfulness score metric.

↳ instance SummarizationHelpfulnessInstance

Required. Summarization helpfulness instance.

getMetricSpec

Required. Spec for summarization helpfulness score metric.

Returns
Type Description
SummarizationHelpfulnessSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for summarization helpfulness score metric.

Parameter
Name Description
var SummarizationHelpfulnessSpec
Returns
Type Description
$this

getInstance

Required. Summarization helpfulness instance.

Returns
Type Description
SummarizationHelpfulnessInstance|null

hasInstance

clearInstance

setInstance

Required. Summarization helpfulness instance.

Parameter
Name Description
var SummarizationHelpfulnessInstance
Returns
Type Description
$this