|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.classifier4J.bayesian.SimpleWordsDataSource
| Constructor Summary | |
SimpleWordsDataSource()
|
|
| 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 |
java.util.Collection |
getAll()
|
WordProbability |
getWordProbability(java.lang.String word)
|
void |
setWordProbability(WordProbability wp)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleWordsDataSource()
| Method Detail |
public void setWordProbability(WordProbability wp)
public WordProbability getWordProbability(java.lang.String word)
getWordProbability in interface IWordsDataSourceword - The word to calculate the probability of
IWordsDataSource.getWordProbability(java.lang.String)public java.util.Collection getAll()
public void addMatch(java.lang.String word)
IWordsDataSource
addMatch in interface IWordsDataSourceword - the word that matchesIWordsDataSource.addMatch(java.lang.String)public void addNonMatch(java.lang.String word)
IWordsDataSource
addNonMatch in interface IWordsDataSourceword - the word that does not matchIWordsDataSource.addNonMatch(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||