Package com.google.genai.types
Class BleuSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.BleuSpec
Spec for bleu metric.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BleuSpec.Builderbuilder()Instantiates a builder for BleuSpec.static BleuSpecDeserializes a JSON string to a BleuSpec object.abstract BleuSpec.BuilderCreates a builder with the same values as this instance.Optional.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
BleuSpec
public BleuSpec()
-
-
Method Details
-
useEffectiveOrder
Optional. Whether to use_effective_order to compute bleu score. -
builder
Instantiates a builder for BleuSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a BleuSpec object.
-