|
| EST_BackoffNgrammarState (const EST_Discrete *d, int level) |
|
| EST_BackoffNgrammarState (const EST_DiscreteProbDistribution &pdf, int level) |
|
| EST_BackoffNgrammarState (const EST_BackoffNgrammarState &s) |
|
| EST_BackoffNgrammarState (const EST_BackoffNgrammarState *const s) |
|
void | clear () |
|
void | init () |
|
void | init (const EST_Discrete *d, int level) |
|
void | init (const EST_DiscreteProbDistribution &pdf, int level) |
|
bool | accumulate (const EST_StrVector &words, const double count=1) |
|
bool | accumulate (const EST_IVector &words, const double count=1) |
|
const EST_DiscreteProbDistribution & | pdf_const () const |
|
EST_DiscreteProbDistribution & | pdf () |
|
double | probability (const EST_String &w) const |
|
double | frequency (const EST_String &w) const |
|
const EST_String & | most_probable (double *prob=NULL) const |
|
const int | level () const |
|
EST_BackoffNgrammarState * | get_child (const EST_String &word) const |
|
EST_BackoffNgrammarState * | get_child (const int word) const |
|
void | remove_child (EST_BackoffNgrammarState *child, const EST_String &name) |
|
void | zap () |
|
const EST_BackoffNgrammarState *const | get_state (const EST_StrVector &words) const |
|
bool | ngram_exists (const EST_StrVector &words, const double threshold) const |
|
const double | get_backoff_weight () const |
|
const double | get_backoff_weight (const EST_StrVector &words) const |
|
bool | set_backoff_weight (const EST_StrVector &words, const double w) |
|
void | frequency_of_frequencies (EST_DVector &ff) |
|
void | print_freqs (ostream &os, const int order, EST_String followers="") |
|
Definition at line 131 of file EST_Ngrammar.h.
◆ EST_BackoffNgrammarState() [1/3]
EST_BackoffNgrammarState::EST_BackoffNgrammarState |
( |
| ) |
|
|
inline |
◆ EST_BackoffNgrammarState() [2/3]
EST_BackoffNgrammarState::EST_BackoffNgrammarState |
( |
const EST_Discrete * |
d, |
|
|
int |
level |
|
) |
| |
|
inline |
◆ EST_BackoffNgrammarState() [3/3]
◆ ~EST_BackoffNgrammarState()
EST_BackoffNgrammarState::~EST_BackoffNgrammarState |
( |
| ) |
|
◆ add_child() [1/2]
◆ add_child() [2/2]
◆ clear()
void EST_BackoffNgrammarState::clear |
( |
| ) |
|
◆ init() [1/3]
void EST_BackoffNgrammarState::init |
( |
| ) |
|
◆ init() [2/3]
void EST_BackoffNgrammarState::init |
( |
const EST_Discrete * |
d, |
|
|
int |
level |
|
) |
| |
◆ init() [3/3]
◆ accumulate() [1/2]
bool EST_BackoffNgrammarState::accumulate |
( |
const EST_StrVector & |
words, |
|
|
const double |
count = 1 |
|
) |
| |
◆ accumulate() [2/2]
bool EST_BackoffNgrammarState::accumulate |
( |
const EST_IVector & |
words, |
|
|
const double |
count = 1 |
|
) |
| |
◆ pdf_const()
◆ pdf()
◆ probability()
double EST_BackoffNgrammarState::probability |
( |
const EST_String & |
w | ) |
const |
|
inline |
◆ frequency()
double EST_BackoffNgrammarState::frequency |
( |
const EST_String & |
w | ) |
const |
|
inline |
◆ most_probable()
const EST_String & EST_BackoffNgrammarState::most_probable |
( |
double * |
prob = NULL | ) |
const |
|
inline |
◆ level()
const int EST_BackoffNgrammarState::level |
( |
| ) |
const |
|
inline |
◆ get_child() [1/2]
◆ get_child() [2/2]
◆ remove_child()
◆ zap()
void EST_BackoffNgrammarState::zap |
( |
| ) |
|
◆ get_state()
◆ ngram_exists()
bool EST_BackoffNgrammarState::ngram_exists |
( |
const EST_StrVector & |
words, |
|
|
const double |
threshold |
|
) |
| const |
◆ get_backoff_weight() [1/2]
const double EST_BackoffNgrammarState::get_backoff_weight |
( |
| ) |
const |
|
inline |
◆ get_backoff_weight() [2/2]
const double EST_BackoffNgrammarState::get_backoff_weight |
( |
const EST_StrVector & |
words | ) |
const |
◆ set_backoff_weight()
bool EST_BackoffNgrammarState::set_backoff_weight |
( |
const EST_StrVector & |
words, |
|
|
const double |
w |
|
) |
| |
◆ frequency_of_frequencies()
void EST_BackoffNgrammarState::frequency_of_frequencies |
( |
EST_DVector & |
ff | ) |
|
◆ print_freqs()
void EST_BackoffNgrammarState::print_freqs |
( |
ostream & |
os, |
|
|
const int |
order, |
|
|
EST_String |
followers = "" |
|
) |
| |
◆ operator<<
◆ p_level
int EST_BackoffNgrammarState::p_level |
|
protected |
◆ backoff_weight
double EST_BackoffNgrammarState::backoff_weight |
|
protected |
◆ p_pdf
◆ children
The documentation for this class was generated from the following files: