API reference¶
The reference is generated from the docstrings in the source, so it always
matches the installed version. Everything below is available from the
top-level package (freqprob.Laplace, freqprob.perplexity, ...):
| Page | Contents |
|---|---|
| Estimators | every smoothing method, and the ScoringMethod base class |
| Metrics | perplexity, cross-entropy, KL divergence, model comparison, coverage and entropy |
| Text helpers | word and n-gram counting |
| Performance | streaming, vectorized and lazy estimators, compact storage, caches |
Each method page also includes the reference entries of its estimators, next to their definition and examples.