Class DataframeAnalysisFeatureProcessorNGramEncoding
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorNGramEncoding
- All Implemented Interfaces:
DataframeAnalysisFeatureProcessorVariant,JsonpSerializable
@JsonpDeserializable
public class DataframeAnalysisFeatureProcessorNGramEncoding
extends Object
implements DataframeAnalysisFeatureProcessorVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forDataframeAnalysisFeatureProcessorNGramEncoding. -
Field Summary
FieldsModifier and TypeFieldDescriptionJson deserializer forDataframeAnalysisFeatureProcessorNGramEncoding -
Method Summary
Modifier and TypeMethodDescriptionDataframeAnalysisFeatureProcessor variant kind.final Booleancustom()API name:customfinal StringThe feature name prefix.final Stringfield()Required - The name of the text field to encode.final Integerlength()Specifies the length of the n-gram substring.nGrams()Required - Specifies which n-grams to gather.of(Function<DataframeAnalysisFeatureProcessorNGramEncoding.Builder, ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer(ObjectDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op) final Integerstart()Specifies the zero-indexed start of the n-gram substring.toString()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.DataframeAnalysisFeatureProcessorVariant
_toDataframeAnalysisFeatureProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forDataframeAnalysisFeatureProcessorNGramEncoding
-
-
Method Details
-
of
-
_dataframeAnalysisFeatureProcessorKind
DataframeAnalysisFeatureProcessor variant kind.- Specified by:
_dataframeAnalysisFeatureProcessorKindin interfaceDataframeAnalysisFeatureProcessorVariant
-
featurePrefix
The feature name prefix. Defaults to ngram_<start>_<length>.API name:
feature_prefix -
field
Required - The name of the text field to encode.API name:
field -
length
Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0.API name:
length -
nGrams
Required - Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5.API name:
n_grams -
start
Specifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0.API name:
start -
custom
API name:custom -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer
protected static void setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer(ObjectDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)
-