net.sf.textkit4j.classify.bayesian
Class WordAndCategoryOccurences

java.lang.Object
  extended by net.sf.textkit4j.classify.bayesian.WordAndCategoryOccurences

public class WordAndCategoryOccurences
extends java.lang.Object


Constructor Summary
WordAndCategoryOccurences()
           
 
Method Summary
 java.util.Map<java.lang.String,CategoryData> getCategories()
           
 java.lang.Double getCategoryProbability(java.lang.String category)
           
 java.lang.Double getProbabilityOfWordGivenCategory(java.lang.String category, java.lang.String word)
           
 java.lang.Double getWordProbability(java.lang.String word)
           
 void updateOccurences(java.lang.String category, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordAndCategoryOccurences

public WordAndCategoryOccurences()
Method Detail

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.