Class FillMaskInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.FillMaskInferenceOptions
- All Implemented Interfaces:
InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable
public class FillMaskInferenceOptions
extends Object
implements InferenceConfigCreateVariant, JsonpSerializable
Fill mask inference options
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FillMaskInferenceOptions>Json deserializer forFillMaskInferenceOptions -
Method Summary
Modifier and TypeMethodDescriptionInferenceConfigCreate variant kind.final StringThe string/token which will be removed from incoming documents and replaced with the inference prediction(s).final IntegerSpecifies the number of top class predictions to return.static FillMaskInferenceOptionsfinal 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 voidfinal TokenizationConfigThe tokenization options to update when inferringtoString()final VocabularyAPI name:vocabularyMethods 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 forFillMaskInferenceOptions
-
-
Method Details
-
of
public static FillMaskInferenceOptions of(Function<FillMaskInferenceOptions.Builder, ObjectBuilder<FillMaskInferenceOptions>> fn) -
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
maskToken
The string/token which will be removed from incoming documents and replaced with the inference prediction(s). In a response, this field contains the mask token for the specified model/tokenizer. Each model and tokenizer has a predefined mask token which cannot be changed. Thus, it is recommended not to set this value in requests. However, if this field is present in a request, its value must match the predefined value for that model/tokenizer, otherwise the request will fail.API name:
mask_token -
numTopClasses
Specifies the number of top class predictions to return. Defaults to 0.API name:
num_top_classes -
tokenization
The tokenization options to update when inferringAPI name:
tokenization -
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
vocabulary
API name:vocabulary -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupFillMaskInferenceOptionsDeserializer
protected static void setupFillMaskInferenceOptionsDeserializer(ObjectDeserializer<FillMaskInferenceOptions.Builder> op)
-