Class TextClassificationInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.TextClassificationInferenceOptions
- All Implemented Interfaces:
- InferenceConfigCreateVariant,- JsonpSerializable
@JsonpDeserializable
public class TextClassificationInferenceOptions
extends Object
implements InferenceConfigCreateVariant, JsonpSerializable
Text classification configuration options
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TextClassificationInferenceOptions>Json deserializer forTextClassificationInferenceOptions
- 
Method SummaryModifier and TypeMethodDescriptionInferenceConfigCreate variant kind.Classification labels to apply other than the stored labels.final IntegerSpecifies the number of top class predictions to return.of(Function<TextClassificationInferenceOptions.Builder, ObjectBuilder<TextClassificationInferenceOptions>> 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 voidsetupTextClassificationInferenceOptionsDeserializer(ObjectDeserializer<TextClassificationInferenceOptions.Builder> op) final TokenizationConfigThe tokenization optionstoString()final VocabularyAPI name:vocabularyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigCreateVariant_toInferenceConfigCreate
- 
Field Details- 
_DESERIALIZERJson deserializer forTextClassificationInferenceOptions
 
- 
- 
Method Details- 
of
- 
_inferenceConfigCreateKindInferenceConfigCreate variant kind.- Specified by:
- _inferenceConfigCreateKindin interface- InferenceConfigCreateVariant
 
- 
numTopClassesSpecifies the number of top class predictions to return. Defaults to 0.API name: num_top_classes
- 
tokenizationThe tokenization optionsAPI 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
- 
vocabularyAPI name:vocabulary
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupTextClassificationInferenceOptionsDeserializerprotected static void setupTextClassificationInferenceOptionsDeserializer(ObjectDeserializer<TextClassificationInferenceOptions.Builder> op) 
 
-