public static final class PhraseSuggestionBuilder.StupidBackoff extends PhraseSuggestionBuilder.SmoothingModel
See N-Gram Smoothing for details.
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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) |
toXContent
public 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.SmoothingModel
IOException
Copyright © 2009–2016. All rights reserved.