Google Cloud Ai Platform V1 Client - Class SummarizationHelpfulnessInput (1.4.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 Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessSpec

Required. Spec for summarization helpfulness score metric.

↳ instance Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessInstance

Required. Summarization helpfulness instance.

getMetricSpec

Required. Spec for summarization helpfulness score metric.

Returns
Type Description
Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for summarization helpfulness score metric.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessSpec
Returns
Type Description
$this

getInstance

Required. Summarization helpfulness instance.

Returns
Type Description
Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessInstance|null

hasInstance

clearInstance

setInstance

Required. Summarization helpfulness instance.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\SummarizationHelpfulnessInstance
Returns
Type Description
$this