public static final class PhraseSuggestionBuilder.LinearInterpolation extends PhraseSuggestionBuilder.SmoothingModel
See N-Gram Smoothing for details.
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
PhraseSuggestionBuilder.LinearInterpolation(double trigramLambda,
double bigramLambda,
double unigramLambda)
Creates a linear interpolation smoothing model.
|
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
toXContent
public PhraseSuggestionBuilder.LinearInterpolation(double trigramLambda, double bigramLambda, double unigramLambda)
trigramLambda
- the trigram lambdabigramLambda
- the bigram lambdaunigramLambda
- the unigram lambdaprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent
in class PhraseSuggestionBuilder.SmoothingModel
IOException
Copyright © 2009–2017. All rights reserved.