#include <ScoredWord.h>
Public Member Functions | |
| ScoredWord (void) | |
| ScoredWord (const char *text, double s=0.0) | |
| ScoredWord (const string &text, double s=0.0) | |
| bool | operator< (const ScoredWord &w) const |
Public Attributes | |
| string | word |
| double | score |
| Bayes::ScoredWord::ScoredWord | ( | void | ) | [inline] |
The default constructor creates a new ScoredWord
| Bayes::ScoredWord::ScoredWord | ( | const char * | text, | |
| double | s = 0.0 | |||
| ) | [inline] |
Creates a new ScoredWord with the given text and score
| text | the text that was scored | |
| s | the score the given text has reached. Default to 0.0 |
| Bayes::ScoredWord::ScoredWord | ( | const string & | text, | |
| double | s = 0.0 | |||
| ) | [inline] |
The default constructor creates a new ScoredWord with the given text and score
| text | the text that was scored | |
| s | the score the given text has reached. Default to 0.0 |
| bool Bayes::ScoredWord::operator< | ( | const ScoredWord & | w | ) | const [inline] |
comparison operator used to determine whether a given ScoredWord has a higher score or not.
| w | the other ScoredWord which shall be compared |
| string Bayes::ScoredWord::word |
the token that was scored
| double Bayes::ScoredWord::score |
the actually reached score
1.5.1