Bayes::ScoredWord Class Reference

#include <ScoredWord.h>

List of all members.

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


Detailed Description

Utility-class to represent a token with a score.

See also:
Score


Constructor & Destructor Documentation

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

Parameters:
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

Parameters:
text the text that was scored
s the score the given text has reached. Default to 0.0


Member Function Documentation

bool Bayes::ScoredWord::operator< ( const ScoredWord w  )  const [inline]

comparison operator used to determine whether a given ScoredWord has a higher score or not.

Parameters:
w the other ScoredWord which shall be compared
Returns:
whether the given ScoredWord w has a higher score or not


Member Data Documentation

string Bayes::ScoredWord::word

the token that was scored

double Bayes::ScoredWord::score

the actually reached score


The documentation for this class was generated from the following file:
Generated on Sat Feb 10 21:32:39 2007 for bayes-irc by  doxygen 1.5.1