Google Cloud Ai Platform V1 Client - Class CorroborateContentResponse (1.13.0)

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

Response message for CorroborateContent.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ corroboration_score float

Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.

↳ claims array<Claim>

Claims that are extracted from the input content and facts that support the claims.

getCorroborationScore

Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.

Returns
Type Description
float

hasCorroborationScore

clearCorroborationScore

setCorroborationScore

Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.

Parameter
Name Description
var float
Returns
Type Description
$this

getClaims

Claims that are extracted from the input content and facts that support the claims.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setClaims

Claims that are extracted from the input content and facts that support the claims.

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