Class PutTrainedModelVocabularyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PutTrainedModelVocabularyRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutTrainedModelVocabularyRequest
extends RequestBase
implements JsonpSerializable
Create a trained model vocabulary. This API is supported only for natural
language processing (NLP) models. The vocabulary is stored in the index as
described in
inference_config.*.vocabulary of the trained model
definition.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutTrainedModelVocabularyRequest>Json deserializer forPutTrainedModelVocabularyRequeststatic final Endpoint<PutTrainedModelVocabularyRequest,PutTrainedModelVocabularyResponse, ErrorResponse> Endpoint "ml.put_trained_model_vocabulary". -
Method Summary
Modifier and TypeMethodDescriptionmerges()The optional model merges if required by the tokenizer.final StringmodelId()Required - The unique identifier of the trained model.of(Function<PutTrainedModelVocabularyRequest.Builder, ObjectBuilder<PutTrainedModelVocabularyRequest>> fn) scores()The optional vocabulary value scores if required by the tokenizer.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupPutTrainedModelVocabularyRequestDeserializer(ObjectDeserializer<PutTrainedModelVocabularyRequest.Builder> op) Required - The model vocabulary, which must not be empty.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutTrainedModelVocabularyRequest -
_ENDPOINT
public static final Endpoint<PutTrainedModelVocabularyRequest,PutTrainedModelVocabularyResponse, _ENDPOINTErrorResponse> Endpoint "ml.put_trained_model_vocabulary".
-
-
Method Details
-
of
-
merges
The optional model merges if required by the tokenizer.API name:
merges -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
scores
The optional vocabulary value scores if required by the tokenizer.API name:
scores -
vocabulary
Required - The model vocabulary, which must not be empty.API name:
vocabulary -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutTrainedModelVocabularyRequestDeserializer
protected static void setupPutTrainedModelVocabularyRequestDeserializer(ObjectDeserializer<PutTrainedModelVocabularyRequest.Builder> op)
-