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

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

Input for rouge metric.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec RougeSpec

Required. Spec for rouge score metric.

↳ instances array<RougeInstance>

Required. Repeated rouge instances.

getMetricSpec

Required. Spec for rouge score metric.

Returns
Type Description
RougeSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for rouge score metric.

Parameter
Name Description
var RougeSpec
Returns
Type Description
$this

getInstances

Required. Repeated rouge instances.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setInstances

Required. Repeated rouge instances.

Parameter
Name Description
var array<RougeInstance>
Returns
Type Description
$this