Class NerInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NerInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.NerInferenceUpdateOptions.Builder
- All Implemented Interfaces:
WithJson<NerInferenceUpdateOptions.Builder>
,ObjectBuilder<NerInferenceUpdateOptions>
- Enclosing class:
- NerInferenceUpdateOptions
public static class NerInferenceUpdateOptions.Builder
extends WithJsonObjectBuilderBase<NerInferenceUpdateOptions.Builder>
implements ObjectBuilder<NerInferenceUpdateOptions>
Builder for
NerInferenceUpdateOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aNerInferenceUpdateOptions
.resultsField
(String value) The field that is added to incoming documents to contain the inference prediction.protected NerInferenceUpdateOptions.Builder
self()
The tokenization options to update when inferringtokenization
(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) The tokenization options to update when inferringMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
public final NerInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value) The tokenization options to update when inferringAPI name:
tokenization
-
tokenization
public final NerInferenceUpdateOptions.Builder tokenization(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NerInferenceUpdateOptions.Builder>
-
build
Builds aNerInferenceUpdateOptions
.- Specified by:
build
in interfaceObjectBuilder<NerInferenceUpdateOptions>
- Throws:
NullPointerException
- if some of the required fields are null.
-