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
  • Field Details

  • Constructor Details

  • Method Details

    • _variantType

      public java.lang.String _variantType()
      Specified by:
      _variantType in interface UnionVariant
    • 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

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer

      protected static void setupDataframeAnalysisFeatureProcessorNGramEncodingDeserializer​(DelegatingDeserializer<DataframeAnalysisFeatureProcessorNGramEncoding.Builder> op)