Class LinearInterpolation

    • Constructor Detail

      • 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 java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException