Class DataframeAnalysisFeatureProcessorNGramEncoding.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorNGramEncoding.Builder
- All Implemented Interfaces:
WithJson<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>,ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
- Enclosing class:
- DataframeAnalysisFeatureProcessorNGramEncoding
public static class DataframeAnalysisFeatureProcessorNGramEncoding.Builder
extends WithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
implements ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
Builder for
DataframeAnalysisFeatureProcessorNGramEncoding.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()API name:customfeaturePrefix(String value) The feature name prefix.Required - The name of the text field to encode.Specifies the length of the n-gram substring.Required - Specifies which n-grams to gather.Required - Specifies which n-grams to gather.self()Specifies the zero-indexed start of the n-gram substring.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
featurePrefix
public final DataframeAnalysisFeatureProcessorNGramEncoding.Builder featurePrefix(@Nullable String value) 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_gramsAdds all elements of
listtonGrams. -
nGrams
public final DataframeAnalysisFeatureProcessorNGramEncoding.Builder nGrams(Integer value, Integer... values) 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_gramsAdds one or more values to
nGrams. -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>- Throws:
NullPointerException- if some of the required fields are null.
-