Class NerInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NerInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.NerInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<NerInferenceOptions.Builder>,ObjectBuilder<NerInferenceOptions>
- Enclosing class:
- NerInferenceOptions
public static class NerInferenceOptions.Builder extends WithJsonObjectBuilderBase<NerInferenceOptions.Builder> implements ObjectBuilder<NerInferenceOptions>
Builder for
NerInferenceOptions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description NerInferenceOptionsbuild()Builds aNerInferenceOptions.NerInferenceOptions.BuilderclassificationLabels(java.lang.String value, java.lang.String... values)The token classification labels.NerInferenceOptions.BuilderclassificationLabels(java.util.List<java.lang.String> list)The token classification labels.NerInferenceOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.protected NerInferenceOptions.Builderself()NerInferenceOptions.Buildertokenization(TokenizationConfig value)The tokenization optionsNerInferenceOptions.Buildertokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
The tokenization optionsAPI name:
tokenization -
tokenization
public final NerInferenceOptions.Builder tokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsAPI name:
tokenization -
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
classificationLabels
public final NerInferenceOptions.Builder classificationLabels(java.util.List<java.lang.String> list)The token classification labels. Must be IOB formatted tagsAPI name:
classification_labelsAdds all elements of
listtoclassificationLabels. -
classificationLabels
public final NerInferenceOptions.Builder classificationLabels(java.lang.String value, java.lang.String... values)The token classification labels. Must be IOB formatted tagsAPI name:
classification_labelsAdds one or more values to
classificationLabels. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<NerInferenceOptions.Builder>
-
build
Builds aNerInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<NerInferenceOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-