#include <include/EST_Ngrammar.h>
Public Member Functions | |
EST_NgrammarState () | |
EST_NgrammarState (int id, EST_Discrete *d) | |
EST_NgrammarState (int id, const EST_DiscreteProbDistribution &pdf) | |
EST_NgrammarState (const EST_NgrammarState &s) | |
EST_NgrammarState (const EST_NgrammarState *const s) | |
~EST_NgrammarState () | |
void | clear () |
void | init () |
void | init (int id, EST_Discrete *d) |
void | init (int id, const EST_DiscreteProbDistribution &pdf) |
void | cumulate (const int index, const double count=1) |
void | cumulate (const EST_String &word, const double count=1) |
int | id () const |
const EST_DiscreteProbDistribution & | pdf_const () const |
EST_DiscreteProbDistribution & | pdf () |
double | probability (const EST_String &w) const |
double | probability (int w) const |
double | frequency (const EST_String &w) const |
double | frequency (int w) const |
const EST_String & | most_probable (double *prob=NULL) const |
Public Attributes | |
EST_IVector | path |
Protected Attributes | |
EST_DiscreteProbDistribution | p_pdf |
int | p_id |
Friends | |
ostream & | operator<< (ostream &s, const EST_NgrammarState &a) |
Definition at line 75 of file EST_Ngrammar.h.
|
inline |
Definition at line 84 of file EST_Ngrammar.h.
|
inline |
Definition at line 91 of file EST_Ngrammar.h.
|
inline |
Definition at line 92 of file EST_Ngrammar.h.
EST_NgrammarState::EST_NgrammarState | ( | const EST_NgrammarState & | s | ) |
Definition at line 60 of file EST_Ngrammar.cc.
EST_NgrammarState::EST_NgrammarState | ( | const EST_NgrammarState *const | s | ) |
Definition at line 66 of file EST_Ngrammar.cc.
EST_NgrammarState::~EST_NgrammarState | ( | ) |
Definition at line 72 of file EST_Ngrammar.cc.
void EST_NgrammarState::clear | ( | ) |
Definition at line 77 of file EST_Ngrammar.cc.
void EST_NgrammarState::init | ( | ) |
Definition at line 83 of file EST_Ngrammar.cc.
void EST_NgrammarState::init | ( | int | id, |
EST_Discrete * | d | ||
) |
Definition at line 89 of file EST_Ngrammar.cc.
void EST_NgrammarState::init | ( | int | id, |
const EST_DiscreteProbDistribution & | |||
) |
Definition at line 96 of file EST_Ngrammar.cc.
|
inline |
Definition at line 107 of file EST_Ngrammar.h.
|
inline |
Definition at line 109 of file EST_Ngrammar.h.
|
inline |
Definition at line 113 of file EST_Ngrammar.h.
|
inline |
Definition at line 114 of file EST_Ngrammar.h.
|
inline |
Definition at line 115 of file EST_Ngrammar.h.
|
inline |
Definition at line 116 of file EST_Ngrammar.h.
|
inline |
Definition at line 118 of file EST_Ngrammar.h.
|
inline |
Definition at line 119 of file EST_Ngrammar.h.
|
inline |
Definition at line 121 of file EST_Ngrammar.h.
|
inline |
Definition at line 122 of file EST_Ngrammar.h.
|
friend |
Definition at line 103 of file EST_Ngrammar.cc.
|
protected |
Definition at line 80 of file EST_Ngrammar.h.
|
protected |
Definition at line 81 of file EST_Ngrammar.h.
EST_IVector EST_NgrammarState::path |
Definition at line 98 of file EST_Ngrammar.h.