Class NerInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.NerInferenceOptions
- All Implemented Interfaces:
InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable public class NerInferenceOptions extends java.lang.Object implements InferenceConfigCreateVariant, JsonpSerializable
Named entity recognition options
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNerInferenceOptions.BuilderBuilder forNerInferenceOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NerInferenceOptions>_DESERIALIZERJson deserializer forNerInferenceOptions -
Method Summary
Modifier and Type Method Description InferenceConfigCreate.Kind_inferenceConfigCreateKind()InferenceConfigCreate variant kind.java.util.List<java.lang.String>classificationLabels()The token classification labels.static NerInferenceOptionsof(java.util.function.Function<NerInferenceOptions.Builder,ObjectBuilder<NerInferenceOptions>> fn)java.lang.StringresultsField()The field that is added to incoming documents to contain the inference prediction.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupNerInferenceOptionsDeserializer(ObjectDeserializer<NerInferenceOptions.Builder> op)TokenizationConfigtokenization()The tokenization optionsjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigCreateVariant
_toInferenceConfigCreate
-
Field Details
-
_DESERIALIZER
Json deserializer forNerInferenceOptions
-
-
Method Details
-
of
public static NerInferenceOptions of(java.util.function.Function<NerInferenceOptions.Builder,ObjectBuilder<NerInferenceOptions>> fn) -
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
tokenization
The tokenization optionsAPI name:
tokenization -
resultsField
@Nullable public final java.lang.String 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 java.util.List<java.lang.String> classificationLabels()The token classification labels. Must be IOB formatted tagsAPI name:
classification_labels -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupNerInferenceOptionsDeserializer
protected static void setupNerInferenceOptionsDeserializer(ObjectDeserializer<NerInferenceOptions.Builder> op)
-