Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class BleuSpec.
Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.
Generated from protobuf message google.cloud.aiplatform.v1.BleuSpec
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ use_effective_order |
bool
Optional. Whether to use_effective_order to compute bleu score. |
getUseEffectiveOrder
Optional. Whether to use_effective_order to compute bleu score.
Returns | |
---|---|
Type | Description |
bool |
setUseEffectiveOrder
Optional. Whether to use_effective_order to compute bleu score.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |