Class DataframeAnalysisFeatureProcessorNGramEncoding.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.DataframeAnalysisFeatureProcessorNGramEncoding.Builder
- All Implemented Interfaces:
ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
- Enclosing class:
- DataframeAnalysisFeatureProcessorNGramEncoding
public static class DataframeAnalysisFeatureProcessorNGramEncoding.Builder extends java.lang.Object implements ObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>
Builder for
DataframeAnalysisFeatureProcessorNGramEncoding.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DataframeAnalysisFeatureProcessorNGramEncoding.BuilderaddNGrams(java.lang.Integer value)Add a value tonGrams(List), creating the list if needed.DataframeAnalysisFeatureProcessorNGramEncodingbuild()DataframeAnalysisFeatureProcessorNGramEncoding.Buildercustom(java.lang.Boolean value)API name:customDataframeAnalysisFeatureProcessorNGramEncoding.BuilderfeaturePrefix(java.lang.String value)The feature name prefix.DataframeAnalysisFeatureProcessorNGramEncoding.Builderfield(java.lang.String value)Required - The name of the text field to encode.DataframeAnalysisFeatureProcessorNGramEncoding.Builderlength(java.lang.Integer value)Specifies the length of the n-gram substring.DataframeAnalysisFeatureProcessorNGramEncoding.BuildernGrams(java.lang.Integer... value)Required - Specifies which n-grams to gather.DataframeAnalysisFeatureProcessorNGramEncoding.BuildernGrams(java.util.List<java.lang.Integer> value)Required - Specifies which n-grams to gather.DataframeAnalysisFeatureProcessorNGramEncoding.Builderstart(java.lang.Integer value)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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
featurePrefix
public DataframeAnalysisFeatureProcessorNGramEncoding.Builder featurePrefix(@Nullable java.lang.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
public DataframeAnalysisFeatureProcessorNGramEncoding.Builder length(@Nullable java.lang.Integer value)Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0.API name:
length -
nGrams
public DataframeAnalysisFeatureProcessorNGramEncoding.Builder nGrams(java.util.List<java.lang.Integer> value)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 -
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 -
addNGrams
Add a value tonGrams(List), creating the list if needed. -
start
public DataframeAnalysisFeatureProcessorNGramEncoding.Builder start(@Nullable java.lang.Integer value)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
public DataframeAnalysisFeatureProcessorNGramEncoding.Builder custom(@Nullable java.lang.Boolean value)API name:custom -
build
- Specified by:
buildin interfaceObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-