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
Creates 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 classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutTrainedModelVocabularyRequest>
Json deserializer forPutTrainedModelVocabularyRequest
static 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 String
modelId()
Required - The unique identifier of the trained model.of
(Function<PutTrainedModelVocabularyRequest.Builder, ObjectBuilder<PutTrainedModelVocabularyRequest>> fn) void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupPutTrainedModelVocabularyRequestDeserializer
(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
-
vocabulary
Required - The model vocabulary, which must not be empty.API name:
vocabulary
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutTrainedModelVocabularyRequestDeserializer
protected static void setupPutTrainedModelVocabularyRequestDeserializer(ObjectDeserializer<PutTrainedModelVocabularyRequest.Builder> op)
-