Class LinearInterpolation

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

public final class LinearInterpolation extends SmoothingModel
Linear interpolation smoothing model.

See N-Gram Smoothing for details.

  • Field Details

  • Constructor Details

    • LinearInterpolation

      public LinearInterpolation(double trigramLambda, double bigramLambda, double unigramLambda)
      Creates a linear interpolation smoothing model. Note: the lambdas must sum up to one.
      Parameters:
      trigramLambda - the trigram lambda
      bigramLambda - the bigram lambda
      unigramLambda - the unigram lambda
    • LinearInterpolation

      public LinearInterpolation(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details