Class TextClassificationInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.TextClassificationInferenceUpdateOptions
- All Implemented Interfaces:
- InferenceConfigUpdateVariant,- JsonpSerializable
@JsonpDeserializable
public class TextClassificationInferenceUpdateOptions
extends Object
implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder forTextClassificationInferenceUpdateOptions.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TextClassificationInferenceUpdateOptions>Json deserializer forTextClassificationInferenceUpdateOptions
- 
Method SummaryModifier and TypeMethodDescriptionInferenceConfigUpdate variant kind.Classification labels to apply other than the stored labels.final IntegerSpecifies the number of top class predictions to return.of(Function<TextClassificationInferenceUpdateOptions.Builder, ObjectBuilder<TextClassificationInferenceUpdateOptions>> 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 voidsetupTextClassificationInferenceUpdateOptionsDeserializer(ObjectDeserializer<TextClassificationInferenceUpdateOptions.Builder> op) The tokenization options to update when inferringtoString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant_toInferenceConfigUpdate
- 
Field Details- 
_DESERIALIZERJson deserializer forTextClassificationInferenceUpdateOptions
 
- 
- 
Method Details- 
of
- 
_inferenceConfigUpdateKindInferenceConfigUpdate variant kind.- Specified by:
- _inferenceConfigUpdateKindin interface- InferenceConfigUpdateVariant
 
- 
numTopClassesSpecifies the number of top class predictions to return. Defaults to 0.API name: num_top_classes
- 
tokenizationThe tokenization options to update when inferringAPI name: tokenization
- 
resultsFieldThe field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name: results_field
- 
classificationLabelsClassification labels to apply other than the stored labels. Must have the same deminsions as the default configured labelsAPI name: classification_labels
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupTextClassificationInferenceUpdateOptionsDeserializerprotected static void setupTextClassificationInferenceUpdateOptionsDeserializer(ObjectDeserializer<TextClassificationInferenceUpdateOptions.Builder> op) 
 
-