public static final class PhraseSuggestionBuilder.Laplace extends PhraseSuggestionBuilder.SmoothingModel
See N-Gram Smoothing for details.
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Laplace(double alpha)
Creates a Laplace smoothing model.
|
Modifier and Type | Method and Description |
---|---|
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
toXContent
public Laplace(double alpha)
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–2015. All rights reserved.