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 class
DataframeAnalysisFeatureProcessorNGramEncoding.Builder
Builder forDataframeAnalysisFeatureProcessorNGramEncoding
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding>
_DESERIALIZER
Json 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()
DataframeAnalysisFeatureProcessor
variant typejava.lang.Boolean
custom()
API name:custom
java.lang.String
featurePrefix()
The feature name prefix.java.lang.String
field()
Required - The name of the text field to encode.java.lang.Integer
length()
Specifies the length of the n-gram substring.java.util.List<java.lang.Integer>
nGrams()
Required - Specifies which n-grams to gather.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer(DelegatingDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)
java.lang.Integer
start()
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, wait
Methods 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()DataframeAnalysisFeatureProcessor
variant type- Specified by:
_variantType
in 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer
protected static void setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer(DelegatingDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)
-