net.sf.textkit4j.classify.bayesian
Class WordAndCategoryOccurences
java.lang.Object
net.sf.textkit4j.classify.bayesian.WordAndCategoryOccurences
public class WordAndCategoryOccurences
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordAndCategoryOccurences
public WordAndCategoryOccurences()
getCategories
public java.util.Map<java.lang.String,CategoryData> getCategories()
getProbabilityOfWordGivenCategory
public java.lang.Double getProbabilityOfWordGivenCategory(java.lang.String category,
java.lang.String word)
getCategoryProbability
public java.lang.Double getCategoryProbability(java.lang.String category)
getWordProbability
public java.lang.Double getWordProbability(java.lang.String word)
updateOccurences
public void updateOccurences(java.lang.String category,
java.lang.String text)
Copyright © 2009 All Eight, LLC. All Rights Reserved.