Protected Member Functions | |
const EST_String & | ppredict (EST_PredictionSuffixTree_tree_node *node, const EST_StrVector &words, double *prob, int *state, const int index=0) const |
void | p_accumulate (EST_PredictionSuffixTree_tree_node *node, const EST_StrVector &words, double count, const int index=0) |
const EST_DiscreteProbDistribution & | p_prob_dist (EST_PredictionSuffixTree_tree_node *node, const EST_StrVector &words, const int index=0) const |
Protected Attributes | |
int | p_order |
int | num_states |
EST_PredictionSuffixTree_tree_node * | nodes |
EST_DiscreteProbDistribution * | pd |
EST_PredictionSuffixTree::EST_PredictionSuffixTree | ( | void | ) |
Definition at line 124 of file EST_PST.cc.
|
inline |
EST_PredictionSuffixTree::~EST_PredictionSuffixTree | ( | ) |
Definition at line 142 of file EST_PST.cc.
|
protected |
Definition at line 280 of file EST_PST.cc.
|
protected |
Definition at line 205 of file EST_PST.cc.
|
protected |
Definition at line 157 of file EST_PST.cc.
Definition at line 149 of file EST_PST.cc.
Definition at line 133 of file EST_PST.cc.
void EST_PredictionSuffixTree::accumulate | ( | const EST_StrVector & | words, |
const double | count = 1 , |
||
const int | index = 0 |
||
) |
Definition at line 182 of file EST_PST.cc.
int EST_PredictionSuffixTree::load | ( | const EST_String | filename | ) |
Definition at line 344 of file EST_PST.cc.
int EST_PredictionSuffixTree::save | ( | const EST_String | filename, |
const EST_PredictionSuffixTree::EST_filetype | type = PredictionSuffixTree_ascii |
||
) |
Definition at line 328 of file EST_PST.cc.
void EST_PredictionSuffixTree::build | ( | const EST_String | filename, |
const EST_String | prev, | ||
const EST_String | prev_prev, | ||
const EST_String | last | ||
) |
Definition at line 397 of file EST_PST.cc.
void EST_PredictionSuffixTree::build | ( | const EST_StrList & | input | ) |
Definition at line 436 of file EST_PST.cc.
void EST_PredictionSuffixTree::test | ( | const EST_String | filename | ) |
Definition at line 462 of file EST_PST.cc.
Definition at line 308 of file EST_PST.cc.
Definition at line 318 of file EST_PST.cc.
const EST_String & EST_PredictionSuffixTree::predict | ( | const EST_StrVector & | words | ) | const |
Definition at line 259 of file EST_PST.cc.
const EST_String & EST_PredictionSuffixTree::predict | ( | const EST_StrVector & | words, |
double * | prob | ||
) | const |
Definition at line 267 of file EST_PST.cc.
const EST_String & EST_PredictionSuffixTree::predict | ( | const EST_StrVector & | words, |
double * | prob, | ||
int * | state | ||
) | const |
Definition at line 274 of file EST_PST.cc.
|
inline |
double EST_PredictionSuffixTree::rev_prob | ( | const EST_StrVector & | words | ) | const |
Definition at line 239 of file EST_PST.cc.
double EST_PredictionSuffixTree::rev_prob | ( | const EST_StrVector & | words, |
const EST_DiscreteProbDistribution & | pd | ||
) | const |
Definition at line 250 of file EST_PST.cc.
|
protected |
|
protected |