|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface used by BayesianClassifier to determine the probability of each word.
| Method Summary | |
void |
addMatch(java.lang.String word)
Add a matching word to the data source |
void |
addNonMatch(java.lang.String word)
Add a non-matching word to the data source |
WordProbability |
getWordProbability(java.lang.String word)
|
| Method Detail |
public WordProbability getWordProbability(java.lang.String word)
throws WordsDataSourceException
word - The word to calculate the probability of
WordsDataSourceException - If there is a fatal problem. For
example, the database is unavailable
public void addMatch(java.lang.String word)
throws WordsDataSourceException
word - the word that matches
WordsDataSourceException - If there is a fatal problem. For
example, the database is unavailable
public void addNonMatch(java.lang.String word)
throws WordsDataSourceException
word - the word that does not match
WordsDataSourceException - If there is a fatal problem. For
example, the database is unavailable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||