java.lang.Object
org.elasticsearch.search.suggest.phrase.SmoothingModel
org.elasticsearch.search.suggest.phrase.Laplace
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public final class Laplace extends SmoothingModel
An additive smoothing model.

See N-Gram Smoothing for details.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static double
    Default alpha parameter for laplace smoothing
    static String
     

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Laplace(double alpha)
    Creates a Laplace smoothing model.
    Read from a stream.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
    subtype specific implementation of "equals".
    protected int
     
    fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
     
    double
     
    Returns the name of the writeable object
    protected org.elasticsearch.common.xcontent.XContentBuilder
    innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    void
    Write this into the StreamOutput.

    Methods inherited from class org.elasticsearch.search.suggest.phrase.SmoothingModel

    equals, hashCode, toXContent

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment