public static final class PhraseSuggestionBuilder.StupidBackoff extends PhraseSuggestionBuilder.SmoothingModel
See N-Gram Smoothing for details.
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
PhraseSuggestionBuilder.StupidBackoff(double discount)
Creates a Stupid-Backoff smoothing model.
|
| Modifier and Type | Method and Description |
|---|---|
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
toXContentpublic PhraseSuggestionBuilder.StupidBackoff(double discount)
discount - the discount given to lower order ngrams if the higher order ngram doesn't exitsprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent in class PhraseSuggestionBuilder.SmoothingModelIOExceptionCopyright © 2009–2017. All rights reserved.