Class ZeroShotClassificationInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.ZeroShotClassificationInferenceUpdateOptions
- All Implemented Interfaces:
InferenceConfigUpdateVariant
,JsonpSerializable
@JsonpDeserializable public class ZeroShotClassificationInferenceUpdateOptions extends java.lang.Object implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZeroShotClassificationInferenceUpdateOptions.Builder
Builder forZeroShotClassificationInferenceUpdateOptions
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ZeroShotClassificationInferenceUpdateOptions>
_DESERIALIZER
Json deserializer forZeroShotClassificationInferenceUpdateOptions
-
Method Summary
Modifier and Type Method Description InferenceConfigUpdate.Kind
_inferenceConfigUpdateKind()
InferenceConfigUpdate variant kind.java.util.List<java.lang.String>
labels()
Required - The labels to predict.java.lang.Boolean
multiLabel()
Update the configured multi label option.static ZeroShotClassificationInferenceUpdateOptions
of(java.util.function.Function<ZeroShotClassificationInferenceUpdateOptions.Builder,ObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>> fn)
java.lang.String
resultsField()
The field that is added to incoming documents to contain the inference prediction.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupZeroShotClassificationInferenceUpdateOptionsDeserializer(ObjectDeserializer<ZeroShotClassificationInferenceUpdateOptions.Builder> op)
NlpTokenizationUpdateOptions
tokenization()
The tokenization options to update when inferringjava.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant
_toInferenceConfigUpdate
-
Field Details
-
_DESERIALIZER
Json deserializer forZeroShotClassificationInferenceUpdateOptions
-
-
Method Details
-
of
public static ZeroShotClassificationInferenceUpdateOptions of(java.util.function.Function<ZeroShotClassificationInferenceUpdateOptions.Builder,ObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>> fn) -
_inferenceConfigUpdateKind
InferenceConfigUpdate variant kind.- Specified by:
_inferenceConfigUpdateKind
in interfaceInferenceConfigUpdateVariant
-
tokenization
The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
@Nullable public final java.lang.String resultsField()The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
multiLabel
@Nullable public final java.lang.Boolean multiLabel()Update the configured multi label option. Indicates if more than one true label exists. Defaults to the configured value.API name:
multi_label
-
labels
public final java.util.List<java.lang.String> labels()Required - The labels to predict.API name:
labels
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupZeroShotClassificationInferenceUpdateOptionsDeserializer
protected static void setupZeroShotClassificationInferenceUpdateOptionsDeserializer(ObjectDeserializer<ZeroShotClassificationInferenceUpdateOptions.Builder> op)
-