edu.stanford.nlp.classify
Class CategoryMatrix

java.lang.Object
  |
  +--edu.stanford.nlp.classify.CategoryMatrix
All Implemented Interfaces:
MatrixWrapper

public class CategoryMatrix
extends Object
implements MatrixWrapper

Wrapper for a Matrix whose columns are P(w|c). (probability of a word given a category.


Constructor Summary
CategoryMatrix(LabeledDataCollection db)
           
CategoryMatrix(Matrix fm, Matrix tm, List senses)
          constructs a CategoryMatrix from a Matrix of count data and its tags
 
Method Summary
 Matrix getMatrix()
          Returns underlying Matrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryMatrix

public CategoryMatrix(LabeledDataCollection db)

CategoryMatrix

public CategoryMatrix(Matrix fm,
                      Matrix tm,
                      List senses)
constructs a CategoryMatrix from a Matrix of count data and its tags

Method Detail

getMatrix

public Matrix getMatrix()
Description copied from interface: MatrixWrapper
Returns underlying Matrix

Specified by:
getMatrix in interface MatrixWrapper


Stanford NLP Group