Google Cloud Ai Platform V1 Client - Class Claim (1.32.1)

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

Claim that is extracted from the input text and facts that support it.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ start_index
int

Index in the input text where the claim starts (inclusive).

↳ end_index
int

Index in the input text where the claim ends (exclusive).

↳ fact_indexes
array

Indexes of the facts supporting this claim.

↳ score
float

Confidence score of this corroboration.

getStartIndex

Index in the input text where the claim starts (inclusive).

Returns
Type
Description
int

hasStartIndex

clearStartIndex

setStartIndex

Index in the input text where the claim starts (inclusive).

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getEndIndex

Index in the input text where the claim ends (exclusive).

Returns
Type
Description
int

hasEndIndex

clearEndIndex

setEndIndex

Index in the input text where the claim ends (exclusive).

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getFactIndexes

Indexes of the facts supporting this claim.

Returns
Type
Description

setFactIndexes

Indexes of the facts supporting this claim.

Parameter
Name
Description
var
int[]
Returns
Type
Description
$this

getScore

Confidence score of this corroboration.

Returns
Type
Description
float

hasScore

clearScore

setScore

Confidence score of this corroboration.

Parameter
Name
Description
var
float
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: