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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getMatrix
public Matrix getMatrix()
- Description copied from interface:
MatrixWrapper
- Returns underlying Matrix
- Specified by:
getMatrix
in interface MatrixWrapper
Stanford NLP Group