Stupid Backoff continuation probability smoother.
More...
#include <Smoothers.h>
|
class | Sampler< SBOSmoother > |
|
Stupid Backoff continuation probability smoother.
◆ SBOSmoother()
SBOSmoother::SBOSmoother |
( |
kgramFreqs & |
f, |
|
|
const double & |
lambda |
|
) |
| |
|
inline |
Initialize a SBOSmoother from a kgramFreqs object with a fixed backoff penalization.
- Parameters
-
f | a kgramFreqs class object. k-gram frequency table from which "bare" k-gram counts are read off. |
lambda | positive number. Penalization in Stupid Backoff recursion. |
◆ operator()()
double SBOSmoother::operator() |
( |
const std::string & |
word, |
|
|
std::string |
context |
|
) |
| |
|
inline |
Return Stupid Backoff continuation score of a word given a context.
- Parameters
-
word | A string. Word for which the continuation score is to be computed. |
context | A string. Context conditioning the score of 'word'. |
- Returns
- a positive number. Stupid Backoff continuation score of 'word' given 'context'.
The documentation for this class was generated from the following file: