Create a trained model vocabulary
- PUT /_ml/trained_models/{model_id}/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.
- Cluster privileges:
manage_ml
Path Parameters
-
model_idstring Idrequired -
The unique identifier of the trained model.
Request
-
vocabularystringrequired -
The model vocabulary, which must not be empty.
-
mergesstring -
The optional model merges if required by the tokenizer.
-
scoresnumber -
The optional vocabulary value scores if required by the tokenizer.
Response
application/json
-
acknowledgedbooleanrequired -
For a successful response, this value is always true. On failure, an exception is returned instead.