public static final class BleuSpec.Builder extends GeneratedMessageV3.Builder<BleuSpec.Builder> implements BleuSpecOrBuilder
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.
Protobuf type google.cloud.aiplatform.v1beta1.BleuSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public BleuSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BleuSpec buildPartial()
public BleuSpec.Builder clear()
Overrides
public BleuSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BleuSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public BleuSpec.Builder clearUseEffectiveOrder()
Optional. Whether to use_effective_order to compute bleu score.
bool use_effective_order = 1 [(.google.api.field_behavior) = OPTIONAL];
public BleuSpec.Builder clone()
Overrides
public BleuSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public boolean getUseEffectiveOrder()
Optional. Whether to use_effective_order to compute bleu score.
bool use_effective_order = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The useEffectiveOrder.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public BleuSpec.Builder mergeFrom(BleuSpec other)
Parameter |
Name |
Description |
other |
BleuSpec
|
public BleuSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BleuSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final BleuSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public BleuSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BleuSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final BleuSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public BleuSpec.Builder setUseEffectiveOrder(boolean value)
Optional. Whether to use_effective_order to compute bleu score.
bool use_effective_order = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
boolean
The useEffectiveOrder to set.
|