Class ZeroShotClassificationInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.ZeroShotClassificationInferenceOptions
- All Implemented Interfaces:
InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable
public class ZeroShotClassificationInferenceOptions
extends Object
implements InferenceConfigCreateVariant, JsonpSerializable
Zero shot classification configuration options
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forZeroShotClassificationInferenceOptions. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ZeroShotClassificationInferenceOptions>Json deserializer forZeroShotClassificationInferenceOptions -
Method Summary
Modifier and TypeMethodDescriptionInferenceConfigCreate variant kind.Required - The zero shot classification labels indicating entailment, neutral, and contradiction Must contain exactly and only entailment, neutral, and contradictionfinal StringHypothesis template used when tokenizing labels for predictionlabels()The labels to predict.final BooleanIndicates if more than one true label exists.of(Function<ZeroShotClassificationInferenceOptions.Builder, ObjectBuilder<ZeroShotClassificationInferenceOptions>> fn) final StringThe field that is added to incoming documents to contain the inference prediction.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupZeroShotClassificationInferenceOptionsDeserializer(ObjectDeserializer<ZeroShotClassificationInferenceOptions.Builder> op) final TokenizationConfigThe tokenization options to update when inferringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigCreateVariant
_toInferenceConfigCreate
-
Field Details
-
_DESERIALIZER
Json deserializer forZeroShotClassificationInferenceOptions
-
-
Method Details
-
of
-
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
tokenization
The tokenization options to update when inferringAPI name:
tokenization -
hypothesisTemplate
Hypothesis template used when tokenizing labels for predictionAPI name:
hypothesis_template -
classificationLabels
Required - The zero shot classification labels indicating entailment, neutral, and contradiction Must contain exactly and only entailment, neutral, and contradictionAPI name:
classification_labels -
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
multiLabel
Indicates if more than one true label exists.API name:
multi_label -
labels
The labels to predict.API name:
labels -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupZeroShotClassificationInferenceOptionsDeserializer
protected static void setupZeroShotClassificationInferenceOptionsDeserializer(ObjectDeserializer<ZeroShotClassificationInferenceOptions.Builder> op)
-