Class DataframeAnalysisFeatureProcessorNGramEncoding
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorNGramEncoding
- All Implemented Interfaces:
DataframeAnalysisFeatureProcessorVariant,JsonpSerializable,UnionVariant
@JsonpDeserializable public final class DataframeAnalysisFeatureProcessorNGramEncoding extends java.lang.Object implements DataframeAnalysisFeatureProcessorVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataframeAnalysisFeatureProcessorNGramEncoding.BuilderBuilder forDataframeAnalysisFeatureProcessorNGramEncoding. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding>_DESERIALIZERJson deserializer forDataframeAnalysisFeatureProcessorNGramEncoding -
Constructor Summary
Constructors Constructor Description DataframeAnalysisFeatureProcessorNGramEncoding(DataframeAnalysisFeatureProcessorNGramEncoding.Builder builder)DataframeAnalysisFeatureProcessorNGramEncoding(java.util.function.Function<DataframeAnalysisFeatureProcessorNGramEncoding.Builder,DataframeAnalysisFeatureProcessorNGramEncoding.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.String_variantType()DataframeAnalysisFeatureProcessorvariant typejava.lang.Booleancustom()API name:customjava.lang.StringfeaturePrefix()The feature name prefix.java.lang.Stringfield()Required - The name of the text field to encode.java.lang.Integerlength()Specifies the length of the n-gram substring.java.util.List<java.lang.Integer>nGrams()Required - Specifies which n-grams to gather.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(DelegatingDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)java.lang.Integerstart()Specifies the zero-indexed start of the n-gram substring.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorVariant
_toDataframeAnalysisFeatureProcessor
-
Field Details
-
_DESERIALIZER
Json deserializer forDataframeAnalysisFeatureProcessorNGramEncoding
-
-
Constructor Details
-
DataframeAnalysisFeatureProcessorNGramEncoding
public DataframeAnalysisFeatureProcessorNGramEncoding(DataframeAnalysisFeatureProcessorNGramEncoding.Builder builder) -
DataframeAnalysisFeatureProcessorNGramEncoding
public DataframeAnalysisFeatureProcessorNGramEncoding(java.util.function.Function<DataframeAnalysisFeatureProcessorNGramEncoding.Builder,DataframeAnalysisFeatureProcessorNGramEncoding.Builder> fn)
-
-
Method Details
-
_variantType
public java.lang.String _variantType()DataframeAnalysisFeatureProcessorvariant type- Specified by:
_variantTypein interfaceUnionVariant
-
featurePrefix
@Nullable public java.lang.String featurePrefix()The feature name prefix. Defaults to ngram_<start>_<length>.API name:
feature_prefix -
field
public java.lang.String field()Required - The name of the text field to encode.API name:
field -
length
@Nullable public java.lang.Integer length()Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0.API name:
length -
nGrams
public java.util.List<java.lang.Integer> 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
@Nullable public java.lang.Integer 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
@Nullable public java.lang.Boolean custom()API name:custom -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer
protected static void setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer(DelegatingDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)
-