public static final class PhraseSuggestionBuilder.LinearInterpolation extends PhraseSuggestionBuilder.SmoothingModel
See N-Gram Smoothing for details.
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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) |
toXContentpublic 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.SmoothingModelIOExceptionCopyright © 2009–2017. All rights reserved.