Package com.google.genai.types
Class BleuSpec
-
- All Implemented Interfaces:
public abstract class BleuSpec extends JsonSerializable
Spec for bleu metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classBleuSpec.BuilderBuilder for BleuSpec.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description BleuSpec()
-
Method Summary
Modifier and Type Method Description abstract Optional<Boolean>useEffectiveOrder()Optional. static BleuSpec.Builderbuilder()Instantiates a builder for BleuSpec. abstract BleuSpec.BuildertoBuilder()Creates a builder with the same values as this instance. static BleuSpecfromJson(String jsonString)Deserializes a JSON string to a BleuSpec object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
useEffectiveOrder
abstract Optional<Boolean> useEffectiveOrder()
Optional. Whether to use_effective_order to compute bleu score.
-
builder
static BleuSpec.Builder builder()
Instantiates a builder for BleuSpec.
-
toBuilder
abstract BleuSpec.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-