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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description 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, java.lang.Integer... values)Required - Specifies which n-grams to gather.DataframeAnalysisFeatureProcessorNGramEncoding.BuildernGrams(java.util.List<java.lang.Integer> list)Required - Specifies which n-grams to gather.protected DataframeAnalysisFeatureProcessorNGramEncoding.Builderself()DataframeAnalysisFeatureProcessorNGramEncoding.Builderstart(java.lang.Integer value)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, _mapPutAllMethods 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 final 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 final 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 final DataframeAnalysisFeatureProcessorNGramEncoding.Builder nGrams(java.util.List<java.lang.Integer> list)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(java.lang.Integer value, java.lang.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
public final 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 final DataframeAnalysisFeatureProcessorNGramEncoding.Builder custom(@Nullable java.lang.Boolean value)API name:custom -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataframeAnalysisFeatureProcessorNGramEncoding.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<DataframeAnalysisFeatureProcessorNGramEncoding>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-