Protected Member Functions | |
EST_BackoffNgrammarState * | add_child (const EST_Discrete *d, const EST_StrVector &words) |
EST_BackoffNgrammarState * | add_child (const EST_Discrete *d, const EST_IVector &words) |
Protected Attributes | |
int | p_level |
double | backoff_weight |
EST_DiscreteProbDistribution | p_pdf |
EST_StringTrie | children |
Friends | |
ostream & | operator<< (ostream &s, const EST_BackoffNgrammarState &a) |
Definition at line 131 of file EST_Ngrammar.h.
|
inline |
Definition at line 146 of file EST_Ngrammar.h.
|
inline |
Definition at line 148 of file EST_Ngrammar.h.
|
inline |
Definition at line 150 of file EST_Ngrammar.h.
EST_BackoffNgrammarState::~EST_BackoffNgrammarState | ( | ) |
Definition at line 111 of file EST_Ngrammar.cc.
|
protected |
Definition at line 235 of file EST_Ngrammar.cc.
|
protected |
Definition at line 265 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::clear | ( | ) |
Definition at line 118 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::init | ( | ) |
Definition at line 124 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::init | ( | const EST_Discrete * | d, |
int | level | ||
) |
Definition at line 130 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::init | ( | const EST_DiscreteProbDistribution & | pdf, |
int | level | ||
) |
Definition at line 137 of file EST_Ngrammar.cc.
bool EST_BackoffNgrammarState::accumulate | ( | const EST_StrVector & | words, |
const double | count = 1 |
||
) |
Definition at line 144 of file EST_Ngrammar.cc.
bool EST_BackoffNgrammarState::accumulate | ( | const EST_IVector & | words, |
const double | count = 1 |
||
) |
Definition at line 183 of file EST_Ngrammar.cc.
|
inline |
Definition at line 168 of file EST_Ngrammar.h.
|
inline |
Definition at line 169 of file EST_Ngrammar.h.
|
inline |
Definition at line 170 of file EST_Ngrammar.h.
|
inline |
Definition at line 172 of file EST_Ngrammar.h.
|
inline |
Definition at line 174 of file EST_Ngrammar.h.
|
inline |
Definition at line 177 of file EST_Ngrammar.h.
|
inline |
Definition at line 179 of file EST_Ngrammar.h.
|
inline |
Definition at line 183 of file EST_Ngrammar.h.
void EST_BackoffNgrammarState::remove_child | ( | EST_BackoffNgrammarState * | child, |
const EST_String & | name | ||
) |
Definition at line 292 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::zap | ( | ) |
Definition at line 372 of file EST_Ngrammar.cc.
const EST_BackoffNgrammarState *const EST_BackoffNgrammarState::get_state | ( | const EST_StrVector & | words | ) | const |
Definition at line 347 of file EST_Ngrammar.cc.
bool EST_BackoffNgrammarState::ngram_exists | ( | const EST_StrVector & | words, |
const double | threshold | ||
) | const |
Definition at line 330 of file EST_Ngrammar.cc.
Definition at line 198 of file EST_Ngrammar.h.
const double EST_BackoffNgrammarState::get_backoff_weight | ( | const EST_StrVector & | words | ) | const |
Definition at line 395 of file EST_Ngrammar.cc.
bool EST_BackoffNgrammarState::set_backoff_weight | ( | const EST_StrVector & | words, |
const double | w | ||
) |
Definition at line 426 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::frequency_of_frequencies | ( | EST_DVector & | ff | ) |
Definition at line 457 of file EST_Ngrammar.cc.
void EST_BackoffNgrammarState::print_freqs | ( | ostream & | os, |
const int | order, | ||
EST_String | followers = "" |
||
) |
Definition at line 302 of file EST_Ngrammar.cc.
|
friend |
Definition at line 473 of file EST_Ngrammar.cc.
|
protected |
Definition at line 136 of file EST_Ngrammar.h.
|
protected |
Definition at line 137 of file EST_Ngrammar.h.
|
protected |
Definition at line 138 of file EST_Ngrammar.h.
|
protected |
Definition at line 139 of file EST_Ngrammar.h.