|
Public Member Functions |
| hmm_tagger (const string &, const string &, bool) |
| Constructor.
|
void | analyze (list< sentence > &) |
| analyze given sentences
|
list< sentence > | analyze (const list< sentence > &) |
| analyze sentences and return analyzed copy
|
Private Member Functions |
double | ProbA_log (const string &, const string &) const |
| Compute transition log_probability from state_i to state_j, returning appropriate smoothed values if no evidence is available.
|
double | ProbB_log (const string &, const word &) const |
| Compute emission log_probability for observation obs from state_i.
|
double | ProbPi_log (const string &) const |
| Compute initial log_probability for state_i.
|
list< emission_states > | FindStates (const sentence &) const |
| compute possible emission states for each word in sentence.
|
Private Attributes |
string | Language |
map< string, double > | PTag |
| maps to store the probabilities
|
map< string, double > | PBg |
map< string, double > | PTrg |
map< string, double > | PInitial |
map< string, double > | PWord |
double | c [3] |
| coeficients to compute linear interpolation
|