| 
|||||||||||
| 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 based on a particular category.
| Method Summary | |
 void | 
addMatch(java.lang.String category,
         java.lang.String word)
Add a matching word to the data source  | 
 void | 
addNonMatch(java.lang.String category,
            java.lang.String word)
Add a non-matching word to the data source  | 
 WordProbability | 
getWordProbability(java.lang.String category,
                   java.lang.String word)
 | 
| Methods inherited from interface net.sf.classifier4J.bayesian.IWordsDataSource | 
addMatch, addNonMatch, getWordProbability | 
| Method Detail | 
public WordProbability getWordProbability(java.lang.String category,
                                          java.lang.String word)
                                   throws WordsDataSourceException
category - the category to check againstword - 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 category,
                     java.lang.String word)
              throws WordsDataSourceException
category - the category add the match toword - the word that matches
WordsDataSourceException - If there is a fatal problem. For 
         example, the database is unavailable
public void addNonMatch(java.lang.String category,
                        java.lang.String word)
                 throws WordsDataSourceException
category - the category add the non-match toword - 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 | ||||||||||